diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-03-12 19:01:25 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-12 10:14:17 -0700 |
commit | 7ee1884f6e68b33a20f1490e8d6ff236a5858aa5 (patch) | |
tree | 52f3628f9e6b71827f368e69dce8d5e0430518f0 /qt-ui/divecomputermanagementdialog.ui | |
parent | 809a6e784c61364b2f2078cdd1acf452da7550a1 (diff) | |
download | subsurface-7ee1884f6e68b33a20f1490e8d6ff236a5858aa5.tar.gz |
Make some dialogs modal to MainWindow
For most dialogs it would be much safer to make them Qt::WindowModal to
the parent (MainWindow).
For now we are not doing this for the preferences dialog as there are
situations where the user might want to be able to move it around and even
interact with the main window.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divecomputermanagementdialog.ui')
-rw-r--r-- | qt-ui/divecomputermanagementdialog.ui | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/divecomputermanagementdialog.ui b/qt-ui/divecomputermanagementdialog.ui index 59be88122..9af67bfb9 100644 --- a/qt-ui/divecomputermanagementdialog.ui +++ b/qt-ui/divecomputermanagementdialog.ui @@ -2,6 +2,9 @@ <ui version="4.0"> <class>DiveComputerManagementDialog</class> <widget class="QDialog" name="DiveComputerManagementDialog"> + <property name="windowModality"> + <enum>Qt::WindowModal</enum> + </property> <property name="geometry"> <rect> <x>0</x> |