summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/simplewidgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/simplewidgets.cpp')
-rw-r--r--desktop-widgets/simplewidgets.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp
index abaf5b372..f28f8c6a0 100644
--- a/desktop-widgets/simplewidgets.cpp
+++ b/desktop-widgets/simplewidgets.cpp
@@ -376,9 +376,9 @@ void ShiftImageTimesDialog::updateInvalid()
ui.invalidFilesText->hide();
QDateTime time_first = QDateTime::fromTime_t(first_selected_dive()->when, Qt::UTC);
QDateTime time_last = QDateTime::fromTime_t(last_selected_dive()->when, Qt::UTC);
- if (first_selected_dive() == last_selected_dive())
+ if (first_selected_dive() == last_selected_dive()) {
ui.invalidFilesText->setPlainText(tr("Selected dive date/time") + ": " + time_first.toString());
- else {
+ } else {
ui.invalidFilesText->setPlainText(tr("First selected dive date/time") + ": " + time_first.toString());
ui.invalidFilesText->append(tr("Last selected dive date/time") + ": " + time_last.toString());
}