diff -r a4320272bb9a -r 223b3a195474 QTfrontend/SparkleAutoUpdater.mm --- a/QTfrontend/SparkleAutoUpdater.mm Fri Nov 02 00:03:56 2012 +0100 +++ b/QTfrontend/SparkleAutoUpdater.mm Fri Nov 02 00:06:11 2012 +0100 @@ -29,15 +29,12 @@ SUUpdater* updater; }; -SparkleAutoUpdater::SparkleAutoUpdater(const QString& aUrl) +SparkleAutoUpdater::SparkleAutoUpdater() { d = new Private; d->updater = [SUUpdater sharedUpdater]; [d->updater retain]; - - NSURL* url = [NSURL URLWithString:[NSString stringWithUTF8String:aUrl.toUtf8().data()]]; - [d->updater setFeedURL:url]; } SparkleAutoUpdater::~SparkleAutoUpdater() @@ -50,3 +47,8 @@ { [d->updater checkForUpdatesInBackground]; } + +void SparkleAutoUpdater::checkForUpdatesNow() +{ + [d->updater checkForUpdates:NULL]; +}