mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
We do not change the displayed_dive_site - don't reset it
It seemed correct when we changed the dive_site that we could be editing, but we don't do that anymore. (I actually think this should be self-contained, no global that a lot of widgets can change) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
71a23c5295
commit
d50e767fb5
1 changed files with 0 additions and 6 deletions
|
@ -121,12 +121,6 @@ void LocationInformationWidget::markChangedWidget(QWidget *w)
|
||||||
|
|
||||||
void LocationInformationWidget::resetState()
|
void LocationInformationWidget::resetState()
|
||||||
{
|
{
|
||||||
if (displayed_dive.id) {
|
|
||||||
struct dive_site *ds = get_dive_site_by_uuid(displayed_dive.dive_site_uuid);
|
|
||||||
if(ds) {
|
|
||||||
displayed_dive_site = *ds;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
modified = false;
|
modified = false;
|
||||||
resetPallete();
|
resetPallete();
|
||||||
MainWindow::instance()->dive_list()->setEnabled(true);
|
MainWindow::instance()->dive_list()->setEnabled(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue