Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Qt UI Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Design Studio
QML Viewer Projects
Qt UI Viewer
Commits
5601c826
Verified
Commit
5601c826
authored
1 year ago
by
Burak Hançerli
Browse files
Options
Downloads
Patches
Plain Diff
chore: fix coding style
parent
bbd837c0
No related branches found
No related tags found
1 merge request
!38
QDS-11878 Reduce the numbers of user notification
Pipeline
#67248
passed
1 year ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend.cpp
+2
-2
2 additions, 2 deletions
src/backend.cpp
src/projectManager.cpp
+2
-2
2 additions, 2 deletions
src/projectManager.cpp
with
4 additions
and
4 deletions
src/backend.cpp
+
2
−
2
View file @
5601c826
...
@@ -415,8 +415,8 @@ void Backend::runUserProject(const QString &projectName)
...
@@ -415,8 +415,8 @@ void Backend::runUserProject(const QString &projectName)
const
std
::
optional
<
QJsonArray
>
projectList
=
m_serviceConnector
.
fetchUserProjectList
(
userHash
);
const
std
::
optional
<
QJsonArray
>
projectList
=
m_serviceConnector
.
fetchUserProjectList
(
userHash
);
if
(
projectList
==
std
::
nullopt
)
{
if
(
projectList
==
std
::
nullopt
)
{
qCritical
(
"Could not fetch up-to-date project information. Please check your internet "
qCritical
(
)
<<
"Could not fetch up-to-date project information. Please check your internet "
"connection and try again."
)
;
"connection and try again."
;
emit
popupClose
();
emit
popupClose
();
return
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/projectManager.cpp
+
2
−
2
View file @
5601c826
...
@@ -81,7 +81,7 @@ void ProjectManager::cleanupResources()
...
@@ -81,7 +81,7 @@ void ProjectManager::cleanupResources()
<<
" Size: "
<<
m_projectData
.
size
()
<<
" bytes."
;
<<
" Size: "
<<
m_projectData
.
size
()
<<
" bytes."
;
data
=
reinterpret_cast
<
const
uchar
*>
(
m_projectData
.
data
());
data
=
reinterpret_cast
<
const
uchar
*>
(
m_projectData
.
data
());
if
(
!
QResource
::
unregisterResource
(
data
,
m_projectPath
))
{
if
(
!
QResource
::
unregisterResource
(
data
,
m_projectPath
))
{
qCritical
(
"Cannot unregister the previous resource data."
)
;
qCritical
(
)
<<
"Cannot unregister the previous resource data."
;
}
}
}
}
}
}
...
@@ -124,7 +124,7 @@ QString ProjectManager::unpackProject(const QByteArray &project, bool extractZip
...
@@ -124,7 +124,7 @@ QString ProjectManager::unpackProject(const QByteArray &project, bool extractZip
}
}
if
(
!
QResource
::
registerResource
(
data
,
resourcePath
))
{
if
(
!
QResource
::
registerResource
(
data
,
resourcePath
))
{
qCritical
(
"Can not load the resource data."
)
;
qCritical
(
)
<<
"Can not load the resource data."
;
return
""
;
return
""
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment