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>
This commit is contained in:
parent
12b9c75676
commit
7feea7ccfa
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user