Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-12-21 15:21:13 +0300
committerHannah von Reth <vonreth@kde.org>2021-01-13 17:29:54 +0300
commit9535b87f610180c292daeac527719f912cf876c6 (patch)
tree9f058eb250630d7a8af8d9f987482e316ea2e286 /src
parent709b28e48e82eaec746abebd70c792fe350e561f (diff)
Ensure that our dialogs are modal
Diffstat (limited to 'src')
-rw-r--r--src/gui/owncloudgui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp
index af0ceeb24..200953715 100644
--- a/src/gui/owncloudgui.cpp
+++ b/src/gui/owncloudgui.cpp
@@ -1045,6 +1045,7 @@ void ownCloudGui::raiseDialog(QWidget *raiseWidget)
{
auto window = ocApp()->gui()->settingsDialog();
OC_ASSERT(window);
+ OC_ASSERT_X(!qobject_cast<QDialog *>(raiseWidget) || raiseWidget->parentWidget() == window, "raiseDialog should only be called with modal dialogs");
if (!window) {
return;
}