summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-15 07:42:14 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-15 07:42:14 -0700
commit2feedf46fa86c19095a9f302d1d7a44d3416384d (patch)
treec5555f630309bc6808acbf7b3957346e745dcb65 /desktop-widgets/simplewidgets.cpp
parent1bdf00b2b472078a0b24f1c269782d822cb96e02 (diff)
downloadsubsurface-2feedf46fa86c19095a9f302d1d7a44d3416384d.tar.gz
Cleanup: small coding style fixes
And addressing a cut and paste error in a comment. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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());
}