summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 607f8783c..1b01a1cf7 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -534,7 +534,7 @@ void DiveListView::merge_trip(const QModelIndex &a, int offset)
reload(currentLayout, false);
fixMessyQtModelBehaviour();
restoreSelection();
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
}
void DiveListView::mergeTripAbove()
@@ -553,13 +553,13 @@ void DiveListView::removeFromTrip()
struct dive *d;
for_each_dive(i, d) {
if (d->selected)
- remove_dive_from_trip(d, FALSE);
+ remove_dive_from_trip(d, false);
}
rememberSelection();
reload(currentLayout, false);
fixMessyQtModelBehaviour();
restoreSelection();
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
}
void DiveListView::newTripAbove()
@@ -578,7 +578,7 @@ void DiveListView::newTripAbove()
trip->expanded = 1;
reload(currentLayout, false);
fixMessyQtModelBehaviour();
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
restoreSelection();
}
@@ -621,7 +621,7 @@ void DiveListView::addToTripAbove()
}
}
trip->expanded = 1;
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
reload(currentLayout, false);
restoreSelection();
fixMessyQtModelBehaviour();
@@ -642,9 +642,9 @@ void DiveListView::markDiveInvalid()
if (amount_selected == 0) {
mainWindow()->cleanUpEmpty();
}
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
mainWindow()->refreshDisplay();
- if(prefs.display_invalid_dives == FALSE) {
+ if(prefs.display_invalid_dives == false) {
clearSelection();
// select top dive that isn't marked invalid
rememberSelection();
@@ -673,7 +673,7 @@ void DiveListView::deleteDive()
if (amount_selected == 0) {
mainWindow()->cleanUpEmpty();
}
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
mainWindow()->refreshDisplay();
if(lastDiveNr != -1){
clearSelection();
@@ -771,7 +771,7 @@ void DiveListView::saveSelectedDivesAs()
settings.endGroup();
QByteArray bt = QFile::encodeName(fileName);
- save_dives_logic(bt.data(), TRUE);
+ save_dives_logic(bt.data(), true);
}
void DiveListView::exportSelectedDivesAsUDDF()