Skip to content
Browse files

Merge pull request #503 from luis-pereira/maint-plugin-clock

plugin-clock: Don't try to get the firstDayofWeek from saved settings
  • Loading branch information...
2 parents d4a55a1 + 48781b3 commit bc8e3cc31a99177d393ffbac81bb6dcd64c7995f @kuzmas kuzmas committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 razorqt-panel/plugin-clock/razorclock.cpp
View
4 razorqt-panel/plugin-clock/razorclock.cpp
@@ -93,6 +93,8 @@ RazorClock::RazorClock(const RazorPanelPluginStartInfo* startInfo, QWidget* pare
connect (mClockTimer, SIGNAL(timeout()), SLOT(updateTime()));
mClockTimer->start(1000);
+ mFirstDayOfWeek = firstDayOfWeek();
+
settingsChanged();
}
@@ -147,8 +149,6 @@ void RazorClock::settingsChanged()
else
mClockFormat = mTimeFormat;
- mFirstDayOfWeek = static_cast<Qt::DayOfWeek>(settings().value("firstDayOfWeek", firstDayOfWeek()).toInt());
-
mDateLabel->setVisible(mDateOnNewLine);
updateMinWidth();

0 comments on commit bc8e3cc

Please sign in to comment.
Something went wrong with that request. Please try again.