]> cloud.milkyroute.net Git - dolphin.git/commitdiff
don't expand to the active URL synchronously, wait until the directory lister has...
authorPeter Penz <peter.penz19@gmail.com>
Tue, 25 Sep 2007 14:56:34 +0000 (14:56 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 25 Sep 2007 14:56:34 +0000 (14:56 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=716899

src/dolphincolumnview.cpp

index 6df71cc1e81a057801265da5871c23b8a93d3d22..a85e0198a6ebe17e6e47a28c07d9ab8d1ad2face 100644 (file)
@@ -635,7 +635,9 @@ void DolphinColumnView::showColumn(const KUrl& url)
     m_index = columnIndex;
     activeColumn()->setActive(true);
 
-    expandToActiveUrl();
+    connect(dirLister, SIGNAL(completed()),
+            this, SLOT(expandToActiveUrl()));
+    dirLister->openUrl(rootUrl, false, true);
 }
 
 void DolphinColumnView::selectAll()
@@ -778,6 +780,9 @@ void DolphinColumnView::updateDecorationSize()
 
 void DolphinColumnView::expandToActiveUrl()
 {
+    disconnect(m_dolphinModel->dirLister(), SIGNAL(completed()),
+               this, SLOT(expandToActiveUrl()));
+
     const int lastIndex = m_columns.count() - 1;
     Q_ASSERT(lastIndex >= 0);
     const KUrl& activeUrl = m_columns[lastIndex]->url();
@@ -803,9 +808,6 @@ void DolphinColumnView::reloadColumns()
     for (int i = 0; i <= end; ++i) {
         ColumnWidget* nextColumn = m_columns[i + 1];
 
-        KDirLister* dirLister = m_dolphinModel->dirLister();
-        dirLister->updateDirectory(nextColumn->url());
-
         const QModelIndex rootIndex = nextColumn->rootIndex();
         if (rootIndex.isValid()) {
             nextColumn->show();