summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-06-28 15:12:09 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-28 20:24:14 +0800
commitfb4dcbc685b3668be2428d60ed978940e3392908 (patch)
treecc4bede6a836def896db7839f51f40648a89dad0 /qt-ui/downloadfromdivecomputer.cpp
parent880b8394d2b063c1bbd6597c2cb6c51f0a1d66c1 (diff)
downloadsubsurface-fb4dcbc685b3668be2428d60ed978940e3392908.tar.gz
A couple of dialog modality considerations
While most dialogs can be open and the main application window can still be accessed, certain should possibly be modal in these terms. This patch proposes the download from webservice and DC dialogs to lock the main application window until they are closed, with the consideration of preventing eventual unexpected behavior in the divelist if both dialogs are active at the same time. To solve that QtDialog::exec() is used instead of QtWidget::show(). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index ba079e6dd..65e7a16e2 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -66,7 +66,7 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) :
void DownloadFromDCWidget::runDialog()
{
ui->progressBar->hide();
- show();
+ exec();
}
void DownloadFromDCWidget::stoppedDownloading()