This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

plugin-clock: Don't try to get the firstDayofWeek from saved settings

Backported from commit 48781b3
by Luís Pereira
  • Loading branch information...
amoskvin committed Nov 30, 2012
1 parent ed991f3 commit 89c8ab6f88d671f91282006fd55f1cd6495c3193
Showing with 2 additions and 2 deletions.
  1. +2 −2 razorqt-panel/plugin-clock/razorclock.cpp
@@ -95,6 +95,8 @@ RazorClock::RazorClock(const RazorPanelPluginStartInfo* startInfo, QWidget* pare
connect (clocktimer, SIGNAL(timeout()), this, SLOT(updateTime()));
clocktimer->start(1000);
+ m_firstDayOfWeek = firstDayOfWeek();
+
settingsChanged();
}
@@ -148,8 +150,6 @@ void RazorClock::settingsChanged()
}
}
- m_firstDayOfWeek = static_cast<Qt::DayOfWeek>(settings().value("firstDayOfWeek", firstDayOfWeek()).toInt());
-
fontChanged();
dateLabel->setVisible(showDate && dateOnNewLine);

0 comments on commit 89c8ab6

Please sign in to comment.