summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2017-10-14 12:49:29 +0200
committerElvis Angelaccio <[email protected]>2017-10-14 12:49:29 +0200
commitc58226ce4f40c5c475728587f5a735a75f8be901 (patch)
treebc2b1ced02e6a166e986b167effd0322ebb1c1ee
parent7787f080678ffd428b269acd8db370a8c0026b37 (diff)
Fix Q_OS_WIN ifdef
This should fix my previous commit.
-rw-r--r--src/dolphinmainwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 07e80d5..41c51b9 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1004,9 +1004,9 @@ void DolphinMainWindow::setUrlAsCaption(const QUrl& url)
setWindowTitle(schemePrefix + fileName);
}
-#ifndef Q_OS_WIN
void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mountPath)
{
+#ifndef Q_OS_WIN
if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
m_tearDownFromPlacesRequested = true;
m_terminalPanel->goHome();
@@ -1014,16 +1014,18 @@ 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()
{