aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/globe.cpp2
-rw-r--r--qt-ui/maintab.cpp2
-rw-r--r--qt-ui/mainwindow.cpp1
3 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 24806d520..c16af93cf 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -3,6 +3,7 @@
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "../dive.h"
+#include "../divelist.h"
#include "../helpers.h"
#include <QDebug>
@@ -203,6 +204,7 @@ void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::U
reload();
editingDiveCoords = 0;
messageWidget->animatedHide();
+ mark_divelist_changed(TRUE);
}
void GlobeGPS::mousePressEvent(QMouseEvent* event)
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 843724374..82550a3f4 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -324,11 +324,13 @@ void MainTab::updateDiveInfo(int dive)
void MainTab::addCylinder_clicked()
{
cylindersModel->add();
+ mark_divelist_changed(TRUE);
}
void MainTab::addWeight_clicked()
{
weightModel->add();
+ mark_divelist_changed(TRUE);
}
void MainTab::reload()
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 43376f9ac..3f16b50e5 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -166,6 +166,7 @@ void MainWindow::on_actionClose_triggered()
ui->ListWidget->reload(DiveTripModel::TREE);
ui->globe->reload();
setTitle(MWTF_DEFAULT);
+ mark_divelist_changed(FALSE);
clear_events();
}