summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-11-28 08:55:05 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-11-28 08:55:05 (GMT)
commit86494383d58646a366df4d4d4dac357e6a9b5fb9 (patch)
treeb01b1b432de5254cd36fdc28496e4affaea3a2ff /Swift/QtUI
parentd9d9503fe39f772b40ec43a3022a715e6374eb58 (diff)
downloadswift-86494383d58646a366df4d4d4dac357e6a9b5fb9.zip
swift-86494383d58646a366df4d4d4dac357e6a9b5fb9.tar.bz2
Removed dummy autoupdater.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtSwift.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Swift/QtUI/QtSwift.cpp b/Swift/QtUI/QtSwift.cpp
index 370d7c3..383e5ca 100644
--- a/Swift/QtUI/QtSwift.cpp
+++ b/Swift/QtUI/QtSwift.cpp
@@ -33,7 +33,7 @@ namespace Swift{
#endif
-QtSwift::QtSwift(bool netbookMode) {
+QtSwift::QtSwift(bool netbookMode) : autoUpdater_(NULL) {
if (netbookMode) {
splitter_ = new QSplitter();
} else {
@@ -59,8 +59,11 @@ QtSwift::QtSwift(bool netbookMode) {
}
mainController_ = new MainController(chatWindowFactory_, rosterWindowFactory_, loginWindowFactory_, treeWidgetFactory_, settings_, application_, systemTray_, soundPlayer_, xmlConsoleWidgetFactory_);
- autoUpdater_ = PlatformAutoUpdaterFactory().createAutoUpdater(SWIFT_APPCAST_URL);
- autoUpdater_->checkForUpdates();
+ PlatformAutoUpdaterFactory autoUpdaterFactory;
+ if (autoUpdaterFactory.isSupported()) {
+ autoUpdater_ = autoUpdaterFactory.createAutoUpdater(SWIFT_APPCAST_URL);
+ autoUpdater_->checkForUpdates();
+ }
}
QtSwift::~QtSwift() {