projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d08bbe
)
AccountSettings: Fix coverity warning
author
Olivier Goffart
<ogoffart@woboq.com>
Tue, 1 Sep 2015 09:39:55 +0000
(11:39 +0200)
committer
Olivier Goffart
<ogoffart@woboq.com>
Tue, 1 Sep 2015 09:39:55 +0000
(11:39 +0200)
FolderMan::folder might return null
src/gui/accountsettings.cpp
patch
|
blob
|
history
diff --git
a/src/gui/accountsettings.cpp
b/src/gui/accountsettings.cpp
index c929932eb503182057d6bedbe9f8b3ae445f0b3f..de8baa3f77cf5ae407c6de1cfec7968a48ef8e2a 100644
(file)
--- a/
src/gui/accountsettings.cpp
+++ b/
src/gui/accountsettings.cpp
@@
-286,9
+286,10
@@
void AccountSettings::slotResetCurrentFolder()
QMessageBox::Yes|QMessageBox::No );
if( ret == QMessageBox::Yes ) {
FolderMan *folderMan = FolderMan::instance();
- Folder *f = folderMan->folder(alias);
- f->slotTerminateSync();
- f->wipe();
+ if(Folder *f = folderMan->folder(alias)) {
+ f->slotTerminateSync();
+ f->wipe();
+ }
folderMan->slotScheduleAllFolders();
}
}