From: Kevin Ottens Date: Mon, 9 Nov 2020 11:02:15 +0000 (+0100) Subject: Make sure the settings dialog exist before hiding it X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~68^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=95487d8bfcab5eaeafd926eb2878f6d602bffb73;p=nextcloud-desktop.git Make sure the settings dialog exist before hiding it Because of PR #2580 the settings dialog doesn't always exist. We need to check for it first before placing calls to it. Signed-off-by: Kevin Ottens --- diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index 9b8c42a7b..3f1cee09c 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -658,7 +658,9 @@ void ownCloudGui::slotShowShareDialog(const QString &sharePath, const QString &l } // For https://github.com/owncloud/client/issues/3783 - _settingsDialog->hide(); + if (_settingsDialog) { + _settingsDialog->hide(); + } const auto accountState = folder->accountState();