]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinpart.cpp
After creating an item with the "Create New..." menu, the new item should get selecte...
[dolphin.git] / src / dolphinpart.cpp
index 882e2f1d3f5dd0fc0056327d37c1f027780f825f..071dce7dfa714a2570f71dd154485a55d1b09af7 100644 (file)
@@ -276,6 +276,7 @@ bool DolphinPart::openUrl(const KUrl& url)
     emit started(0); // get the wheel to spin
     m_dirLister->setNameFilter(m_nameFilter);
     m_view->setUrl(url);
+    updatePasteAction();
     emit aboutToOpenURL();
     if (reload)
         m_view->reload();
@@ -507,7 +508,7 @@ void DolphinPart::slotOpenTerminal()
 
     //If the URL is local after the above conversion, set the directory.
     if (u.isLocalFile()) {
-        dir = u.path();
+        dir = u.toLocalFile();
     }
 
     KToolInvocation::invokeTerminal(QString(), dir);