mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
Folderman: Check if socketApi member is non zero, no crashes.
This commit is contained in:
parent
06c48f58cc
commit
479b340d75
1 changed files with 7 additions and 3 deletions
|
@ -452,7 +452,9 @@ void FolderMan::slotScheduleSync( const QString& alias )
|
||||||
f->prepareToSync();
|
f->prepareToSync();
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "Folder is not enabled, not scheduled!";
|
qDebug() << "Folder is not enabled, not scheduled!";
|
||||||
_socketApi->slotUpdateFolderView(f->alias());
|
if( _socketApi ) {
|
||||||
|
_socketApi->slotUpdateFolderView(f->alias());
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_scheduleQueue.enqueue(alias);
|
_scheduleQueue.enqueue(alias);
|
||||||
|
@ -514,8 +516,10 @@ void FolderMan::slotStartScheduledFolderSync()
|
||||||
|
|
||||||
// reread the excludes of the socket api
|
// reread the excludes of the socket api
|
||||||
// FIXME: the excludes need rework.
|
// FIXME: the excludes need rework.
|
||||||
_socketApi->slotClearExcludesList();
|
if( _socketApi ) {
|
||||||
_socketApi->slotReadExcludes();
|
_socketApi->slotClearExcludesList();
|
||||||
|
_socketApi->slotReadExcludes();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue