Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2013-08-28 23:26:42 +0400
committerOlivier Goffart <ogoffart@woboq.com>2013-08-28 23:26:42 +0400
commita27c8ad90c757acc99b14cc5080c874690930fed (patch)
treee18168efed79bdbc0c1a77eff598f6142edaa908 /src
parent18a58f73de4f566ae65e6ba20586364419696f45 (diff)
Fix crash in case of error
the QObject::parent() is 0
Diffstat (limited to 'src')
-rw-r--r--src/mirall/folderwatcher_inotify.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mirall/folderwatcher_inotify.cpp b/src/mirall/folderwatcher_inotify.cpp
index a36d49bcf..f650b0fe7 100644
--- a/src/mirall/folderwatcher_inotify.cpp
+++ b/src/mirall/folderwatcher_inotify.cpp
@@ -50,8 +50,7 @@ void FolderWatcherPrivate::slotAddFolderRecursive(const QString &path)
qDebug() << "(+) Watcher:" << path;
if (!_inotify->addPath(path)) {
- FolderWatcher *fw = qobject_cast<FolderWatcher*>(parent());
- emit fw->error(tr("Could not monitor directories due to system limitations.\n"
+ emit _parent->error(tr("Could not monitor directories due to system limitations.\n"
"The application will not work reliably. Please check the\n"
"documentation for possible fixes."));
}