diff options
-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() |