aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
-rw-r--r--src/qmmpui/playlistmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp
index 6934c2c42..3afa743fa 100644
--- a/src/qmmpui/playlistmodel.cpp
+++ b/src/qmmpui/playlistmodel.cpp
@@ -111,10 +111,10 @@ void PlayListModel::add(PlayListItem *item)
m_total_length += item->length();
m_items << item;
+ m_current = m_items.indexOf(m_currentItem);
if (m_items.size() == 1)
- emit firstAdded();
- m_current = m_items.indexOf(m_currentItem);
+ emit firstAdded();
emit listChanged();
}