]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix issue that an empty directory is shown in the split mode
authorPeter Penz <peter.penz19@gmail.com>
Thu, 5 Jan 2012 20:23:46 +0000 (21:23 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 5 Jan 2012 20:24:59 +0000 (21:24 +0100)
Root-cause was that the signal KDirLister::completed(KUrl) must be watched
by the model and not KDirLister::completed().

BUG: 290182
FIXED-IN: 4.8.0

src/kitemviews/kfileitemmodel.cpp

index 3fd40e9d453c35c2949f2182fba2062655430322..4893313eb337e735fb98919f8860e361016b36cd 100644 (file)
@@ -63,7 +63,7 @@ KFileItemModel::KFileItemModel(KDirLister* dirLister, QObject* parent) :
     Q_ASSERT(dirLister);
 
     connect(dirLister, SIGNAL(canceled()), this, SLOT(slotCanceled()));
-    connect(dirLister, SIGNAL(completed()), this, SLOT(slotCompleted()));
+    connect(dirLister, SIGNAL(completed(KUrl)), this, SLOT(slotCompleted()));
     connect(dirLister, SIGNAL(newItems(KFileItemList)), this, SLOT(slotNewItems(KFileItemList)));
     connect(dirLister, SIGNAL(itemsDeleted(KFileItemList)), this, SLOT(slotItemsDeleted(KFileItemList)));
     connect(dirLister, SIGNAL(refreshItems(QList<QPair<KFileItem,KFileItem> >)), this, SLOT(slotRefreshItems(QList<QPair<KFileItem,KFileItem> >)));