mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Check parent variable nullness in folderstatusmodel
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
0daec2071e
commit
c7c34b9f14
1 changed files with 1 additions and 2 deletions
|
@ -956,8 +956,7 @@ void FolderStatusModel::slotApplySelectiveSync()
|
|||
|
||||
void FolderStatusModel::slotSetProgress(const ProgressInfo &progress)
|
||||
{
|
||||
const auto parent = qobject_cast<QWidget *>(QObject::parent());
|
||||
if (!parent->isVisible()) {
|
||||
if (const auto parent = qobject_cast<QWidget *>(QObject::parent()); !parent || !parent->isVisible()) {
|
||||
return; // for https://github.com/owncloud/client/issues/2648#issuecomment-71377909
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue