From 7feea7ccfa48c66f71c260fbb4adab889cd988ce Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 27 May 2014 15:10:22 -0700 Subject: Planner: disable the dive list when working on a plan And reenable it when refreshing the screen. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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() -- cgit v1.2.3-70-g09d2