]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
Use one config-dolphin.h.cmake configuration file
[dolphin.git] / src / dolphinmainwindow.cpp
index 77bf8698153be98bccbac5a884d2c8dd01e1b70b..379a320539d8c29a7656f54f59ba6e730d6c1d75 100644 (file)
@@ -9,7 +9,7 @@
 #include "dolphinmainwindow.h"
 
 #include "dolphinmainwindowadaptor.h"
-#include "config-terminal.h"
+#include "config-dolphin.h"
 #include "global.h"
 #include "dolphinbookmarkhandler.h"
 #include "dolphindockwidget.h"
 
 namespace {
     // Used for GeneralSettings::version() to determine whether
-    // an updated version of Dolphin is running.
-    const int CurrentDolphinVersion = 201;
+    // an updated version of Dolphin is running, so as to migrate
+    // removed/renamed ...etc config entries; increment it in such
+    // cases
+    const int CurrentDolphinVersion = 202;
     // The maximum number of entries in the back/forward popup menu
     const int MaxNumberOfNavigationentries = 12;
     // The maximum number of "Activate Tab" shortcuts
@@ -1095,7 +1097,7 @@ void DolphinMainWindow::openTerminalHere()
     QList<QUrl> urls = {};
 
     for (const KFileItem& item : m_activeViewContainer->view()->selectedItems()) {
-        QUrl url = item.url();
+        QUrl url = item.targetUrl();
         if (item.isFile()) {
             url.setPath(QFileInfo(url.path()).absolutePath());
         }