aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/skinned/listwidget.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-01-09 17:09:02 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-01-09 17:09:02 +0000
commitc9d299b4ac4e434e6f6ea53d22b65dc0cca5f67d (patch)
tree316f4e8017ab02b2ef79362affd4bb1fa74adc34 /src/plugins/Ui/skinned/listwidget.cpp
parent7e38f3d305f9eb2809ff6740a83b1c915902cf0f (diff)
downloadqmmp-c9d299b4ac4e434e6f6ea53d22b65dc0cca5f67d.tar.gz
qmmp-c9d299b4ac4e434e6f6ea53d22b65dc0cca5f67d.tar.bz2
qmmp-c9d299b4ac4e434e6f6ea53d22b65dc0cca5f67d.zip
fixed regression
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4683 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/listwidget.cpp')
-rw-r--r--src/plugins/Ui/skinned/listwidget.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/Ui/skinned/listwidget.cpp b/src/plugins/Ui/skinned/listwidget.cpp
index 2f3df05d2..c5418ddeb 100644
--- a/src/plugins/Ui/skinned/listwidget.cpp
+++ b/src/plugins/Ui/skinned/listwidget.cpp
@@ -504,6 +504,11 @@ void ListWidget::updateRepeatIndicator()
updateList(PlayListModel::CURRENT | PlayListModel::STRUCTURE);
}
+void ListWidget::scrollToCurrent()
+{
+ updateList(PlayListModel::CURRENT | PlayListModel::STRUCTURE);
+}
+
void ListWidget::setModel(PlayListModel *selected, PlayListModel *previous)
{
if(previous)
@@ -514,7 +519,7 @@ void ListWidget::setModel(PlayListModel *selected, PlayListModel *previous)
m_scroll = false;
recenterCurrent(); //TODO restore position
updateList(PlayListModel::STRUCTURE);
- //connect (m_model, SIGNAL(currentChanged()), SLOT(recenterCurrent()));
+ connect (m_model, SIGNAL(currentVisibleRequest()), SLOT(scrollToCurrent()));
connect (m_model, SIGNAL(listChanged(int)), SLOT(updateList(int)));
}