┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.cpp
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2007-08-28 21:47:20 +0000
committerDavid Faure <[email protected]>2007-08-28 21:47:20 +0000
commit8118d8e24317b697f78bf32b41fda4200bc56ff9 (patch)
treed3701f5778147d629a403dd6d18579de145ef212 /src/dolphinpart.cpp
parentf229d1531aeaa81eefe4ccce6fd72c96d51807a3 (diff)
dolphinview fix: don't emit urlChanged twice in DolphinView::setUrl (it's already emitted by the controller, and we forward that)
dolphinpart fix: don't let the konq wheel spin forever when clicking on the Home button and we're already viewing $HOME. svn path=/trunk/KDE/kdebase/apps/; revision=705916
Diffstat (limited to 'src/dolphinpart.cpp')
-rw-r--r--src/dolphinpart.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp
index 5d52c78a8..1bc1edac0 100644
--- a/src/dolphinpart.cpp
+++ b/src/dolphinpart.cpp
@@ -107,9 +107,13 @@ bool DolphinPart::openUrl(const KUrl& url)
const QString prettyUrl = url.pathOrUrl();
emit setWindowCaption(prettyUrl);
emit m_extension->setLocationBarUrl(prettyUrl);
+ const bool reload = arguments().reload();
+ if (m_view->url() == url && !reload) { // DolphinView won't do anything in that case, so don't emit started
+ return true;
+ }
setUrl(url); // remember it at the KParts level
m_view->setUrl(url);
- if (arguments().reload())
+ if (reload)
m_view->reload();
emit started(0); // get the wheel to spin
return true;