mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Fix enabling info widget when closing a dive
If the close action is triggered while there is no current dive (empty history), the info widget is enabled. To avoid this behavior, we only enable the info widget during update if the dive index is valid. Signed-off-by: Alexandre Dupas <alexandre.dupas@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b1a3c1047a
commit
5935f372ab
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ void MainTab::clearStats()
|
|||
|
||||
void MainTab::updateDiveInfo(int dive)
|
||||
{
|
||||
if(!isEnabled())
|
||||
if(!isEnabled() && dive != -1)
|
||||
setEnabled(true);
|
||||
|
||||
editMode = NONE;
|
||||
|
|
Loading…
Reference in a new issue