diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-19 19:14:19 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-19 19:14:19 +0000 |
| commit | c3853fb6d5669090d5da21eb8f31ea57526f3456 (patch) | |
| tree | 3bff3e662514affd084f6c037d4f5522c8bb4dbb /src/qmmpui/qmmpuisettings.cpp | |
| parent | 51f31d588dc227b06bd94b9a109592bcb0d3d239 (diff) | |
| download | qmmp-c3853fb6d5669090d5da21eb8f31ea57526f3456.tar.gz qmmp-c3853fb6d5669090d5da21eb8f31ea57526f3456.tar.bz2 qmmp-c3853fb6d5669090d5da21eb8f31ea57526f3456.zip | |
fixed title format updating bug, added group format option
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3624 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/qmmpuisettings.cpp')
| -rw-r--r-- | src/qmmpui/qmmpuisettings.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/qmmpui/qmmpuisettings.cpp b/src/qmmpui/qmmpuisettings.cpp index cab477ad7..581266242 100644 --- a/src/qmmpui/qmmpuisettings.cpp +++ b/src/qmmpui/qmmpuisettings.cpp @@ -85,12 +85,11 @@ void QmmpUiSettings::setConvertTwenty(bool yes) m_convertTwenty = yes; } -void QmmpUiSettings::setTitleFormat(const QString &format) +void QmmpUiSettings::setTitleFormat(const QString &titleFormat) { - m_title_format = format; - if(format != m_title_format) + if(titleFormat != m_title_format) { - m_title_format = format; + m_title_format = titleFormat; foreach(PlayListModel *model, PlayListManager::instance()->playLists()) { model->doCurrentVisibleRequest(); @@ -98,6 +97,20 @@ void QmmpUiSettings::setTitleFormat(const QString &format) } } +void QmmpUiSettings::setGroupFormat(const QString &groupFormat) +{ + if(groupFormat != m_group_format) + { + m_group_format = groupFormat; + if(!PlayListManager::instance()->isGroupsEnabled()) + return; + foreach(PlayListModel *model, PlayListManager::instance()->playLists()) + { + model->prepareGroups(true); + } + } +} + void QmmpUiSettings::setUseMetadata(bool yes) { m_useMetadata = yes; |
