mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Handle add dive cancel correctly
This should leave the program in a consistent state after add dive was cancelled (and do the right thing in case the dive list was empty). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a683a217b9
commit
662b1061f0
2 changed files with 5 additions and 3 deletions
|
|
@ -68,6 +68,7 @@ MainWindow::MainWindow() : helpView(0)
|
|||
void MainWindow::refreshDisplay()
|
||||
{
|
||||
ui.InfoWidget->reload();
|
||||
ui.ProfileWidget->refresh();
|
||||
ui.globe->reload();
|
||||
ui.ListWidget->reload(DiveTripModel::CURRENT);
|
||||
ui.ListWidget->setFocus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue