aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmodel.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-03-11 19:32:01 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-03-11 19:32:01 +0000
commit11b7655bb103974d3a855d64dc0b6ec1b0df4ba1 (patch)
tree09084901838b8d57f345a5379cf5915cde4a9921 /src/qmmpui/playlistmodel.cpp
parent013ee07b55a3738b28b5d46324392d8498b50f2b (diff)
downloadqmmp-11b7655bb103974d3a855d64dc0b6ec1b0df4ba1.tar.gz
qmmp-11b7655bb103974d3a855d64dc0b6ec1b0df4ba1.tar.bz2
qmmp-11b7655bb103974d3a855d64dc0b6ec1b0df4ba1.zip
reapplied previous patch
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1620 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
-rw-r--r--src/qmmpui/playlistmodel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp
index 1518db19c..007eee910 100644
--- a/src/qmmpui/playlistmodel.cpp
+++ b/src/qmmpui/playlistmodel.cpp
@@ -167,7 +167,7 @@ int PlayListModel::currentRow()
bool PlayListModel::setCurrent(int c)
{
if (c > count()-1 || c < 0)
- return FALSE;
+ return false;
m_current = c;
m_currentItem = m_items.at(c);
emit currentChanged();
@@ -232,7 +232,7 @@ void PlayListModel::clear()
void PlayListModel::clearSelection()
{
for (int i = 0; i<m_items.size(); ++i)
- m_items.at(i)->setSelected(FALSE);
+ m_items.at(i)->setSelected(false);
emit listChanged();
}
@@ -457,7 +457,7 @@ void PlayListModel::addFileList(const QStringList &l)
bool PlayListModel::setFileList(const QStringList & l)
{
- bool model_cleared = FALSE;
+ bool model_cleared = false;
foreach(QString str,l)
{
QFileInfo f_info(str);
@@ -899,7 +899,7 @@ bool PlayListModel::isFileLoaderRunning() const
if (l && l->isRunning())
return true;
- return FALSE;
+ return false;
}
void PlayListModel::preparePlayState()
@@ -911,7 +911,7 @@ void PlayListModel::removeInvalidItems()
{
foreach(PlayListItem *item, m_items)
{
- bool ok = FALSE;
+ bool ok = false;
if(!item->url().contains("://"))
ok = MetaDataManager::instance()->supports(item->url());
else