diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2013-08-28 23:26:42 +0400 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2013-08-28 23:26:42 +0400 |
commit | a27c8ad90c757acc99b14cc5080c874690930fed (patch) | |
tree | e18168efed79bdbc0c1a77eff598f6142edaa908 /src | |
parent | 18a58f73de4f566ae65e6ba20586364419696f45 (diff) |
Fix crash in case of error
the QObject::parent() is 0
Diffstat (limited to 'src')
-rw-r--r-- | src/mirall/folderwatcher_inotify.cpp | 3 |
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.")); } |