Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
akiraohgaki
ocs-manager
Commits
1d601d4c
Commit
1d601d4c
authored
Dec 20, 2017
by
akiraohgaki
Browse files
Error handling
parent
d37890f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/updaters/appimageupdater.cpp
View file @
1d601d4c
...
...
@@ -39,16 +39,20 @@ QString AppImageUpdater::errorString() const
QString
AppImageUpdater
::
describeAppImage
()
const
{
std
::
string
description
=
""
;
updater_
->
describeAppImage
(
description
);
return
QString
::
fromStdString
(
description
);
std
::
string
description
;
if
(
updater_
->
describeAppImage
(
description
))
{
return
QString
::
fromStdString
(
description
);
}
return
QString
();
}
bool
AppImageUpdater
::
checkForChanges
()
const
{
bool
updateAvailable
=
false
;
updater_
->
checkForChanges
(
updateAvailable
);
return
updateAvailable
;
bool
updateAvailable
;
if
(
updater_
->
checkForChanges
(
updateAvailable
))
{
return
updateAvailable
;
}
return
false
;
}
void
AppImageUpdater
::
start
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment