summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-29 16:57:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-02 12:51:31 -0800
commitf85883c707e9d6c021025dfe406c9acfb6441e57 (patch)
tree06312dea8132dd0595b360c923ddde9d5de3e736 /desktop-widgets/maintab.cpp
parent222ce62bceac4c7f95e7a0564f11b5789dc18d29 (diff)
downloadsubsurface-f85883c707e9d6c021025dfe406c9acfb6441e57.tar.gz
Create date and time formats preferences
Now we can actually change them in preferences instead of just deriving them from the language set. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/maintab.cpp')
-rw-r--r--desktop-widgets/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/maintab.cpp b/desktop-widgets/maintab.cpp
index 4d4cd3a5e..c7961735a 100644
--- a/desktop-widgets/maintab.cpp
+++ b/desktop-widgets/maintab.cpp
@@ -43,7 +43,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
currentTrip(0)
{
ui.setupUi(this);
- ui.dateEdit->setDisplayFormat(getDateFormat());
+ ui.dateEdit->setDisplayFormat(prefs.date_format);
memset(&displayed_dive, 0, sizeof(displayed_dive));
memset(&displayedTrip, 0, sizeof(displayedTrip));