Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rws77
ocs-manager
Commits
41a12cba
Verified
Commit
41a12cba
authored
Sep 19, 2019
by
azubieta
Browse files
Validate checkForChanges return value
parent
844cf6f6
Changes
1
Show whitespace changes
Inline
Side-by-side
app/src/updaters/appupdater.cpp
View file @
41a12cba
...
...
@@ -39,10 +39,10 @@ void AppUpdater::doUpdateLookUp()
QtConcurrent
::
run
([
=
]()
{
appimage
::
update
::
Updater
updater
(
appImagePath
.
toStdString
());
bool
updateAvailable
;
// this is an output parameter!!!
updater
.
checkForChanges
(
updateAvailable
);
bool
updateAvailable
=
false
;
// this is an output parameter!!!
bool
succed
=
updater
.
checkForChanges
(
updateAvailable
);
if
(
updateAvailable
)
{
if
(
succed
&&
updateAvailable
)
{
qDebug
()
<<
"Update available"
;
emit
this
->
updateAvailable
();
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment