Просмотр исходного кода

Fix build on windows

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Julius Härtl 8 лет назад
Родитель
Сommit
49a16ffb4b
2 измененных файлов с 8 добавлено и 0 удалено
  1. 4 0
      src/gui/owncloudgui.cpp
  2. 4 0
      src/gui/owncloudgui.h

+ 4 - 0
src/gui/owncloudgui.cpp

@@ -42,8 +42,10 @@
 #include <QDir>
 #include <QMessageBox>
 #include <QSignalMapper>
+#ifdef WITH_LIBCLOUDPROVIDERS
 #include <QtDBus/QDBusConnection>
 #include <QtDBus/QDBusInterface>
+#endif
 
 #if defined(Q_OS_X11)
 #include <QX11Info>
@@ -66,7 +68,9 @@ ownCloudGui::ownCloudGui(Application *parent)
 #endif
     _logBrowser(0)
     , _contextMenuVisibleOsx(false)
+#ifdef WITH_LIBCLOUDPROVIDERS
     , _bus(QDBusConnection::sessionBus())
+#endif
     , _recentActionsMenu(0)
     , _qdbusmenuWorkaround(false)
     , _app(parent)

+ 4 - 0
src/gui/owncloudgui.h

@@ -25,7 +25,9 @@
 #include <QMenu>
 #include <QSize>
 #include <QTimer>
+#ifdef WITH_LIBCLOUDPROVIDERS
 #include <QDBusConnection>
+#endif
 
 namespace OCC {
 
@@ -128,7 +130,9 @@ private:
     // on OSX because aboutToHide is not reliable everywhere.
     bool _contextMenuVisibleOsx;
 
+#ifdef WITH_LIBCLOUDPROVIDERS
     QDBusConnection _bus;
+#endif
 
     QMenu *_recentActionsMenu;
     QVector<QMenu *> _accountMenus;