]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fixed issue that within Konqueror changing the active column from the column-view...
authorPeter Penz <peter.penz19@gmail.com>
Tue, 23 Oct 2007 07:10:51 +0000 (07:10 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 23 Oct 2007 07:10:51 +0000 (07:10 +0000)
CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=728394

src/dolphinpart.cpp
src/dolphinpart.h

index 31cde2931d7012961ae13148a1f30bf6df8139ac..3a76286e70f889ef095b0f9cf20903dc9bb7706c 100644 (file)
@@ -82,9 +82,10 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QStringLi
             this, SLOT(slotOpenContextMenu(KFileItem, const KUrl&)));
     connect(m_view, SIGNAL(selectionChanged(KFileItemList)),
             m_extension, SIGNAL(selectionInfo(KFileItemList)));
-
     connect(m_view, SIGNAL(requestItemInfo(KFileItem)),
             this, SLOT(slotRequestItemInfo(KFileItem)));
+    connect(m_view, SIGNAL(urlChanged(const KUrl&)),
+            this, SLOT(slotUrlChanged(const KUrl&)));
 
     createActions();
     updateViewActions();
@@ -224,4 +225,14 @@ void DolphinPart::slotViewModeActionTriggered(QAction* action)
     m_view->setMode(mode);
 }
 
+void DolphinPart::slotUrlChanged(const KUrl& url)
+{
+    if (m_view->url() != url) {
+        // If the view URL is not equal to 'url', then an inner URL change has
+        // been done (e. g. by activating an existing column in the column view).
+        // From the hosts point of view this must be handled like changing the URL.
+        emit m_extension->openUrlRequest(url);
+    }
+}
+
 #include "dolphinpart.moc"
index e4a0ffc9b32a415fdd3abed228a1c4e95991f74a..0b901f6643d5c626dd70d0fefe9343740eff686c 100644 (file)
@@ -72,6 +72,12 @@ private Q_SLOTS:
      */
     void slotViewModeActionTriggered(QAction*);
 
+    /**
+     * Asks the host to open the URL \a url if the current view has
+     * a different URL.
+     */
+    void slotUrlChanged(const KUrl& url);
+
 private:
     void createActions();
     void updateViewActions();