┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-12-10 22:54:37 +0000
committerPeter Penz <[email protected]>2010-12-10 22:54:37 +0000
commite587aaa9c4b895119d64a843eb400102e1372885 (patch)
tree242c39ee449b3b6d1aea2e6c33b96370ca82a33d /src/views
parent0da54e5c1beb880efbc580f2202108ea46d52a1c (diff)
Show an undetermined progress indication within one second after changing an URL.
Update to SVN commit 1205329: - Fix issue that an undetermined progress is shown when switching between columns of the column-view. - Fix issue that no undetermined progress is shown when editing the URL directly in the URL navigator BUG: 234894 BUG: 163004 FIXED-IN: 4.6.0 svn path=/trunk/KDE/kdebase/apps/; revision=1205345
Diffstat (limited to 'src/views')
-rw-r--r--src/views/dolphinview.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp
index c2e998e5a..46f7acf13 100644
--- a/src/views/dolphinview.cpp
+++ b/src/views/dolphinview.cpp
@@ -528,16 +528,14 @@ void DolphinView::setUrl(const KUrl& url)
m_viewModeController->setUrl(url); // emits urlChanged, which we forward
m_viewAccessor.prepareUrlChange(url);
applyViewProperties();
- loadDirectory(url);
// When changing the URL there is no need to keep the version
// data of the previous URL.
m_viewAccessor.dirModel()->clearVersionData();
- emit startedPathLoading(url);
-
// Reconnect to the (probably) new selection model and directory lister
connectViewAccessor();
+ loadDirectory(url);
if (hadSelection || hasSelection()) {
emitSelectionChangedSignal();
@@ -1278,6 +1276,8 @@ void DolphinView::connectViewAccessor()
KDirLister* dirLister = m_viewAccessor.dirLister();
connect(dirLister, SIGNAL(redirection(KUrl,KUrl)),
this, SLOT(slotRedirection(KUrl,KUrl)));
+ connect(dirLister, SIGNAL(started(KUrl)),
+ this, SIGNAL(startedPathLoading(KUrl)));
connect(dirLister, SIGNAL(completed()),
this, SLOT(slotDirListerCompleted()));
connect(dirLister, SIGNAL(refreshItems(const QList<QPair<KFileItem,KFileItem>>&)),
@@ -1293,6 +1293,8 @@ void DolphinView::disconnectViewAccessor()
KDirLister* dirLister = m_viewAccessor.dirLister();
disconnect(dirLister, SIGNAL(redirection(KUrl,KUrl)),
this, SLOT(slotRedirection(KUrl,KUrl)));
+ disconnect(dirLister, SIGNAL(started(KUrl)),
+ this, SIGNAL(startedPathLoading(KUrl)));
disconnect(dirLister, SIGNAL(completed()),
this, SLOT(slotDirListerCompleted()));
disconnect(dirLister, SIGNAL(refreshItems(const QList<QPair<KFileItem,KFileItem>>&)),