summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/tab-widgets/TabDiveEquipment.cpp3
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp4
2 files changed, 2 insertions, 5 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp
index 0a5786e50..33a8e5a3c 100644
--- a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp
@@ -210,9 +210,8 @@ static QVector<dive *> getSelectedDivesCurrentLast()
return res;
}
-// TODO: This are only temporary functions until undo of weightsystems and cylinders is implemented.
+// TODO: This is a temporary functions until undo of cylinders is implemented.
// Therefore it is not worth putting it in a header.
-extern bool weightsystems_equal(const dive *d1, const dive *d2);
extern bool cylinders_equal(const dive *d1, const dive *d2);
void TabDiveEquipment::acceptChanges()
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 006603388..9bdf4d35d 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -589,9 +589,7 @@ void MainTab::rejectChanges()
{
EditMode lastMode = editMode;
- if (lastMode != NONE && current_dive &&
- (!cylinders_equal(current_dive, &displayed_dive) ||
- !weightsystems_equal(current_dive, &displayed_dive))) {
+ if (lastMode != NONE && current_dive && !cylinders_equal(current_dive, &displayed_dive)) {
if (QMessageBox::warning(MainWindow::instance(), TITLE_OR_TEXT(tr("Discard the changes?"),
tr("You are about to discard your changes.")),
QMessageBox::Discard | QMessageBox::Cancel, QMessageBox::Discard) != QMessageBox::Discard) {