]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix typo, which caused a Qt runtime warning when closing Dolphin
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 18 Jan 2012 08:35:43 +0000 (09:35 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 18 Jan 2012 08:39:07 +0000 (09:39 +0100)
(cherry picked from commit dbf0bfffa72c190ed1c8b406c65c9e67b6f65d4f)

src/kitemviews/kitemlistcontainer.cpp

index 930762e628cbfd13eca2e1f456880201c7c1e7d5..58f2e3cd6bcfa25f188d2ab5f0f43b35184a25ce 100644 (file)
@@ -173,7 +173,7 @@ void KItemListContainer::slotViewChanged(KItemListView* current, KItemListView*
     QGraphicsScene* scene = static_cast<QGraphicsView*>(viewport())->scene();
     if (previous) {
         scene->removeItem(previous);
-        disconnect(current, SIGNAL(scrollOrientationChanged(Qt::Orientation,Qt::Orientation)), this, SLOT(slotScrollOrientationChanged(Qt::Orientation,Qt::Orientation)));
+        disconnect(previous, SIGNAL(scrollOrientationChanged(Qt::Orientation,Qt::Orientation)), this, SLOT(slotScrollOrientationChanged(Qt::Orientation,Qt::Orientation)));
         disconnect(previous, SIGNAL(scrollOffsetChanged(qreal,qreal)),        this, SLOT(updateScrollOffsetScrollBar()));
         disconnect(previous, SIGNAL(maximumScrollOffsetChanged(qreal,qreal)), this, SLOT(updateScrollOffsetScrollBar()));
         disconnect(previous, SIGNAL(itemOffsetChanged(qreal,qreal)),          this, SLOT(updateItemOffsetScrollBar()));