From 28fcadc9ee6b72344de777eb1b7620a02c8894f2 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 1bb1c92ce..e7b9d8c41 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;