]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix build on Windows
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 14 Oct 2017 10:36:26 +0000 (12:36 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 14 Oct 2017 10:36:26 +0000 (12:36 +0200)
TerminalPanel is not available on Windows, so commit bd47eb2e6d broke
the MSVC build on the CI.

src/dolphinmainwindow.cpp
src/dolphinmainwindow.h

index cd232577d19e24016a6abce63717f5ce8ec82105..07e80d5869dd44a06842560b68188f66e29b2e88 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)
 {
@@ -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()
 {
index 634c2a9e79635d0c6c3bf8405c44501ad08a7084..c05fc34ad404ee2f37edb8cbdd0ead8305958ba7 100644 (file)
@@ -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;
 };