Skip to content

Commit

Permalink
Ensure that our dialogs are modal
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Jan 13, 2021
1 parent 709b28e commit 9535b87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/owncloudgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9535b87

Please sign in to comment.