Skip to content

Commit

Permalink
Convert directly from QUrl to NSURL
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and mgallien committed Jul 22, 2023
1 parent ff1fbda commit 298a0f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/updater/sparkleupdater_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 298a0f4

Please sign in to comment.