Skip to content

Commit

Permalink
Pref AutoDJ: simplify setting the time
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed May 30, 2024
1 parent 197e7e8 commit 5b014f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/preferences/dialog/dlgprefautodj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void DlgPrefAutoDJ::slotApply() {
m_pConfig->setValue(ConfigKey("[Auto DJ]", "UseIgnoreTime"),
RequeueIgnoreCheckBox->isChecked());
const QString ignTimeStr =
RequeueIgnoreTimeEdit->time().toString(RequeueIgnoreTimeEdit->displayFormat());
RequeueIgnoreTimeEdit->time().toString();
m_pConfig->setValue(ConfigKey("[Auto DJ]", "IgnoreTime"), ignTimeStr);

m_pConfig->setValue(ConfigKey("[Auto DJ]", "EnableRandomQueue"),
Expand All @@ -88,8 +88,7 @@ void DlgPrefAutoDJ::slotResetToDefaults() {

RequeueIgnoreCheckBox->setChecked(false);
RequeueIgnoreTimeEdit->setEnabled(false);
RequeueIgnoreTimeEdit->setTime(QTime::fromString(
"23:59", RequeueIgnoreTimeEdit->displayFormat()));
RequeueIgnoreTimeEdit->setTime(QTime::fromString("23:59"));

RandomQueueCheckBox->setChecked(false);
RandomQueueCheckBox->setEnabled(true);
Expand Down

0 comments on commit 5b014f8

Please sign in to comment.