]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
Two clicks on file/folder to rename
[dolphin.git] / src / dolphinmainwindow.cpp
index cd232577d19e24016a6abce63717f5ce8ec82105..41c51b9dd81979b6b0574d70bf37d5df9fa28d8d 100644 (file)
@@ -100,7 +100,9 @@ DolphinMainWindow::DolphinMainWindow() :
     m_controlButton(0),
     m_updateToolBarTimer(0),
     m_lastHandleUrlStatJob(0),
+#ifndef Q_OS_WIN
     m_terminalPanel(0),
+#endif
     m_placesPanel(0),
     m_tearDownFromPlacesRequested(false)
 {
@@ -1004,6 +1006,7 @@ void DolphinMainWindow::setUrlAsCaption(const QUrl& url)
 
 void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mountPath)
 {
+#ifndef Q_OS_WIN
     if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
         m_tearDownFromPlacesRequested = true;
         m_terminalPanel->goHome();
@@ -1011,14 +1014,17 @@ void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mo
     } else {
         m_placesPanel->proceedWithTearDown();
     }
+#endif
 }
 
 void DolphinMainWindow::slotStorageTearDownExternallyRequested(const QString& mountPath)
 {
+#ifndef Q_OS_WIN
     if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
         m_tearDownFromPlacesRequested = false;
         m_terminalPanel->goHome();
     }
+#endif
 }
 
 void DolphinMainWindow::setupActions()