From 95487d8bfcab5eaeafd926eb2878f6d602bffb73 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Mon, 9 Nov 2020 12:02:15 +0100 Subject: [PATCH] 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 --- src/gui/owncloudgui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.30.2