]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinview.cpp
view: Add setting to trigger user set action with double click
[dolphin.git] / src / views / dolphinview.cpp
index 1bbcd5998e25e515b8195659016e96f69ed5efd3..d42d9cfcd81d7fe9f909548f16766e38c26259ff 100644 (file)
@@ -119,6 +119,7 @@ DolphinView::DolphinView(const QUrl &url, QWidget *parent)
     KItemListController *controller = new KItemListController(m_model, m_view, this);
     const int delay = GeneralSettings::autoExpandFolders() ? 750 : -1;
     controller->setAutoActivationDelay(delay);
+    connect(controller, &KItemListController::doubleClickViewBackground, this, &DolphinView::doubleClickViewBackground);
 
     // The EnlargeSmallPreviews setting can only be changed after the model
     // has been set in the view by KItemListController.