diff --git a/src/gui/updater/sparkleupdater_mac.mm b/src/gui/updater/sparkleupdater_mac.mm index ab962ae9b66d..86b185294108 100644 --- a/src/gui/updater/sparkleupdater_mac.mm +++ b/src/gui/updater/sparkleupdater_mac.mm @@ -270,8 +270,7 @@ - (void)userDidCancelDownload:(SUUpdater *)updater void SparkleUpdater::setUpdateUrl(const QUrl &url) { - NSURL* nsurl = [NSURL URLWithString:url.toString().toNSString()]; - [_interface->updater setFeedURL: nsurl]; + [_interface->updater setFeedURL:url.toNSURL()]; } bool SparkleUpdater::autoUpdaterAllowed()