Merge pull request #2620 from nextcloud/fix_crash_when_displaying_share_dialog

Make sure the settings dialog exist before hiding it
This commit is contained in:
Camila 2020-11-10 18:09:54 +01:00 committed by GitHub
commit 3ffc699058
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();