diff options
| author | Peter Penz <[email protected]> | 2007-09-25 14:56:34 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-09-25 14:56:34 +0000 |
| commit | 93f8093b661d6cd8db6dd747fbdfe38ebd38294b (patch) | |
| tree | 89180278677876301630e4522fb0e1cd55828e4a /src/dolphincolumnview.cpp | |
| parent | 41f8286a568f01bc2723eb74e763556b4c397546 (diff) | |
don't expand to the active URL synchronously, wait until the directory lister has completed its loading
svn path=/trunk/KDE/kdebase/apps/; revision=716899
Diffstat (limited to 'src/dolphincolumnview.cpp')
| -rw-r--r-- | src/dolphincolumnview.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/dolphincolumnview.cpp b/src/dolphincolumnview.cpp index 6df71cc1e..a85e0198a 100644 --- a/src/dolphincolumnview.cpp +++ b/src/dolphincolumnview.cpp @@ -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(); |
