mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Fix Q_OS_WIN ifdef
This should fix my previous commit.
This commit is contained in:
parent
7787f08067
commit
c58226ce4f
|
@ -1004,9 +1004,9 @@ void DolphinMainWindow::setUrlAsCaption(const QUrl& url)
|
||||||
setWindowTitle(schemePrefix + fileName);
|
setWindowTitle(schemePrefix + fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef Q_OS_WIN
|
|
||||||
void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mountPath)
|
void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mountPath)
|
||||||
{
|
{
|
||||||
|
#ifndef Q_OS_WIN
|
||||||
if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
|
if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
|
||||||
m_tearDownFromPlacesRequested = true;
|
m_tearDownFromPlacesRequested = true;
|
||||||
m_terminalPanel->goHome();
|
m_terminalPanel->goHome();
|
||||||
|
@ -1014,16 +1014,18 @@ void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mo
|
||||||
} else {
|
} else {
|
||||||
m_placesPanel->proceedWithTearDown();
|
m_placesPanel->proceedWithTearDown();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void DolphinMainWindow::slotStorageTearDownExternallyRequested(const QString& mountPath)
|
void DolphinMainWindow::slotStorageTearDownExternallyRequested(const QString& mountPath)
|
||||||
{
|
{
|
||||||
|
#ifndef Q_OS_WIN
|
||||||
if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
|
if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
|
||||||
m_tearDownFromPlacesRequested = false;
|
m_tearDownFromPlacesRequested = false;
|
||||||
m_terminalPanel->goHome();
|
m_terminalPanel->goHome();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void DolphinMainWindow::setupActions()
|
void DolphinMainWindow::setupActions()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue