Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7787f080 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Fix build on Windows

TerminalPanel is not available on Windows, so commit bd47eb2e broke
the MSVC build on the CI.
parent bd47eb2e
......@@ -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)
{
......@@ -1002,6 +1004,7 @@ void DolphinMainWindow::setUrlAsCaption(const QUrl& url)
setWindowTitle(schemePrefix + fileName);
}
#ifndef Q_OS_WIN
void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mountPath)
{
if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
......@@ -1020,6 +1023,7 @@ void DolphinMainWindow::slotStorageTearDownExternallyRequested(const QString& mo
m_terminalPanel->goHome();
}
}
#endif
void DolphinMainWindow::setupActions()
{
......
......@@ -47,7 +47,9 @@ class KNewFileMenu;
class QToolButton;
class QIcon;
class PlacesPanel;
#ifndef Q_OS_WIN
class TerminalPanel;
#endif
/**
* @short Main window for Dolphin.
......@@ -516,7 +518,9 @@ private:
KIO::Job* m_lastHandleUrlStatJob;
#ifndef Q_OS_WIN
TerminalPanel* m_terminalPanel;
#endif
PlacesPanel* m_placesPanel;
bool m_tearDownFromPlacesRequested;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment