diff options
| author | David Faure <[email protected]> | 2007-11-11 21:03:59 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2007-11-11 21:03:59 +0000 |
| commit | 2a3035088bff8287fb92fd8dbd93aabe8aaa90d2 (patch) | |
| tree | ff00d4462629490b5416da01e04ef840f7b65774 /src/dolphinpart.cpp | |
| parent | af22e14ba7850394e8ed4924c51190e7311f1f0f (diff) | |
Fix the other bug reported by BCoppens: the tab title was the full path, until switching tabs and back, then it changed to just the dir name (as it should be, in fact).
The logic in KonqView::setCaption was being confused by the part url still being empty; let's do things in the right order here.
+ .rc cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=735495
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index 3a76286e7..2f52447ec 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -93,6 +93,9 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QStringLi // TODO provide these actions in the menu, merged with the existing view-mode-actions somehow // [Q_PROPERTY introspection?] + // TODO sort_by_* actions + // TODO show_*_info actions + // TODO connect to urlsDropped // TODO there was a "always open a new window" (when clicking on a directory) setting in konqueror @@ -137,14 +140,14 @@ KAboutData* DolphinPart::createAboutData() 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 + const QString prettyUrl = url.pathOrUrl(); + emit setWindowCaption(prettyUrl); + emit m_extension->setLocationBarUrl(prettyUrl); m_view->setUrl(url); if (reload) m_view->reload(); |
