mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Stop clicks on the globe from changing dive list selection while editing
This caused us to get royally confused when manually adding a dive and trying to set the location through the marble widget. Fixes # 229 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f41651439c
commit
9ead871d64
3 changed files with 10 additions and 0 deletions
|
@ -253,6 +253,11 @@ void MainTab::clearStats()
|
|||
else \
|
||||
ui.field->setText(get_temperature_string(d->field, TRUE))
|
||||
|
||||
bool MainTab::isEditing()
|
||||
{
|
||||
return editMode != NONE;
|
||||
}
|
||||
|
||||
void MainTab::updateDiveInfo(int dive)
|
||||
{
|
||||
if (!isEnabled() && dive != -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue