diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-27 15:10:22 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-27 15:12:09 -0700 |
commit | 7feea7ccfa48c66f71c260fbb4adab889cd988ce (patch) | |
tree | ed8e969328a34e87c4fdbba6cfdbc877b0aa046d /qt-ui/mainwindow.cpp | |
parent | 12b9c756764cff2695a134d64d3ab78f32847e9f (diff) | |
download | subsurface-7feea7ccfa48c66f71c260fbb4adab889cd988ce.tar.gz |
Planner: disable the dive list when working on a plan
And reenable it when refreshing the screen.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 4417ab673..9d8a0643c 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -130,6 +130,7 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList) if (doRecreateDiveList) recreateDiveList(); ui.ListWidget->setFocus(); + ui.ListWidget->setEnabled(true); WSInfoModel::instance()->updateInfo(); // refresh the yearly stats if the window has an instance if (yearlyStats) { @@ -407,6 +408,9 @@ void MainWindow::on_actionDivePlanner_triggered() // create a simple starting dive, using the first gas from the just copied cylidners createFakeDiveForAddAndPlan(); DivePlannerPointsModel::instance()->createSimpleDive(true); + + // disable the dive list + ui.ListWidget->setEnabled(false); } void MainWindow::on_actionAddDive_triggered() |