mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
Undo: remove superfluous refreshDisplay() in AddDive::(un)doit()
Dives used to be added from a special dive-edit screen. Thus, the undo command had to close that screen. This is no longer the case. Remove the calls. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f6d3efc6f8
commit
ef2f682c67
1 changed files with 0 additions and 8 deletions
|
@ -432,10 +432,6 @@ void AddDive::redoit()
|
||||||
|
|
||||||
// Select the newly added dive
|
// Select the newly added dive
|
||||||
setSelection(divesAndSitesToRemove.dives, divesAndSitesToRemove.dives[0]);
|
setSelection(divesAndSitesToRemove.dives, divesAndSitesToRemove.dives[0]);
|
||||||
|
|
||||||
// Exit from edit mode, but don't recalculate dive list
|
|
||||||
// TODO: Remove edit mode
|
|
||||||
MainWindow::instance()->refreshDisplay(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddDive::undoit()
|
void AddDive::undoit()
|
||||||
|
@ -446,10 +442,6 @@ void AddDive::undoit()
|
||||||
|
|
||||||
// ...and restore the selection
|
// ...and restore the selection
|
||||||
setSelection(selection, currentDive);
|
setSelection(selection, currentDive);
|
||||||
|
|
||||||
// Exit from edit mode, but don't recalculate dive list
|
|
||||||
// TODO: Remove edit mode
|
|
||||||
MainWindow::instance()->refreshDisplay(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ImportDives::ImportDives(struct dive_table *dives, struct trip_table *trips, struct dive_site_table *sites, int flags, const QString &source)
|
ImportDives::ImportDives(struct dive_table *dives, struct trip_table *trips, struct dive_site_table *sites, int flags, const QString &source)
|
||||||
|
|
Loading…
Add table
Reference in a new issue