mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Fix crash in case of error
the QObject::parent() is 0
This commit is contained in:
parent
18a58f73de
commit
a27c8ad90c
1 changed files with 1 additions and 2 deletions
|
@ -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."));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue