From 4a84b6a91197394f17ea514defa5013d3f8bb8aa Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 23 Nov 2013 15:24:27 +0200 Subject: [PATCH] Fix linux compilation. --- src/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index dd0b24199..aa4ded13c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -98,7 +98,11 @@ using namespace libtorrent; *****************************************************/ // Constructor -MainWindow::MainWindow(QWidget *parent, const QStringList& torrentCmdLine) : QMainWindow(parent), m_posInitialized(false), force_exit(false), checkingProgramUpdate(false) { +MainWindow::MainWindow(QWidget *parent, const QStringList& torrentCmdLine) : QMainWindow(parent), m_posInitialized(false), force_exit(false) +#if defined(Q_WS_WIN) || defined(Q_WS_MAC) + ,checkingProgramUpdate(false) +#endif +{ setupUi(this); Preferences pref;