Changeset 14470


Ignore:
Timestamp:
Feb 6, 2015, 8:08:36 PM (6 years ago)
Author:
mikedld
Message:

#5774: Fix alternative speed limits scheduled times (once more)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/prefs-dialog.cc

    r14462 r14470  
    124124    w->setValue (myPrefs.getDouble (prefKey));
    125125  else if (auto w = qobject_cast<QTimeEdit*> (widget))
    126     w->setTime (QTime ().addSecs (myPrefs.getInt(prefKey) * 60));
     126    w->setTime (QTime (0, 0).addSecs (myPrefs.getInt(prefKey) * 60));
    127127  else if (auto w = qobject_cast<QLineEdit*> (widget))
    128128    w->setText (myPrefs.getString (prefKey));
     
    177177{
    178178  if (auto e = qobject_cast<const QTimeEdit*> (sender ()))
    179     setPref(getPrefKey (e), QTime ().secsTo (e->time()) / 60);
     179    setPref(getPrefKey (e), QTime (0, 0).secsTo (e->time()) / 60);
    180180}
    181181
Note: See TracChangeset for help on using the changeset viewer.