]> cloud.milkyroute.net Git - dolphin.git/commitdiff
When hovering over a file on the not-focus view panel, the information panel gets...
authorMéven Car <meven29@gmail.com>
Sun, 24 Mar 2019 17:37:10 +0000 (18:37 +0100)
committerMéven Car <meven29@gmail.com>
Sun, 24 Mar 2019 17:38:42 +0000 (18:38 +0100)
Test Plan:
 - In Dolphin with two views (split view) and with the information panels
 - Hover over a file on the not selected view
 - > the information panel show information about this file

No other changes in behavior

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19936

src/dolphinmainwindow.cpp
src/panels/information/informationpanel.h

index bcadcdb800960f36b6c87da0f53193a4ec759ec9..296cb14007cac771a3d7532931d543a05276c76e 100644 (file)
@@ -1045,6 +1045,10 @@ void DolphinMainWindow::activeViewChanged(DolphinViewContainer* viewContainer)
         oldViewContainer->disconnect(this);
         oldViewContainer->view()->disconnect(this);
         oldViewContainer->urlNavigator()->disconnect(this);
+
+        // except the requestItemInfo so that on hover the information panel can still be updated
+        connect(oldViewContainer->view(), &DolphinView::requestItemInfo,
+                this, &DolphinMainWindow::requestItemInfo);
     }
 
     connectViewSignals(viewContainer);
index 05947145d674ca095e37b2835c19b9c858836eaf..f63af1e53ae70a57d9386c36b4436481de9efde7 100644 (file)
@@ -75,7 +75,7 @@ protected:
 private slots:
     /**
      * Shows the information for the item of the URL which has been provided by
-     * InformationPanel::requestItemInfo() and provides default actions.
+     * InformationPanel::requestDelayedItemInfo() and provides default actions.
      */
     void showItemInfo();