mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,7 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
|
||||||
if (doRecreateDiveList)
|
if (doRecreateDiveList)
|
||||||
recreateDiveList();
|
recreateDiveList();
|
||||||
ui.ListWidget->setFocus();
|
ui.ListWidget->setFocus();
|
||||||
|
ui.ListWidget->setEnabled(true);
|
||||||
WSInfoModel::instance()->updateInfo();
|
WSInfoModel::instance()->updateInfo();
|
||||||
// refresh the yearly stats if the window has an instance
|
// refresh the yearly stats if the window has an instance
|
||||||
if (yearlyStats) {
|
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
|
// create a simple starting dive, using the first gas from the just copied cylidners
|
||||||
createFakeDiveForAddAndPlan();
|
createFakeDiveForAddAndPlan();
|
||||||
DivePlannerPointsModel::instance()->createSimpleDive(true);
|
DivePlannerPointsModel::instance()->createSimpleDive(true);
|
||||||
|
|
||||||
|
// disable the dive list
|
||||||
|
ui.ListWidget->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionAddDive_triggered()
|
void MainWindow::on_actionAddDive_triggered()
|
||||||
|
|
Loading…
Add table
Reference in a new issue