class Q_DECL_HIDDEN SparkleUpdater::SparkleInterface
{
public:
+ explicit SparkleInterface(SparkleUpdater *parent)
+ : q(parent)
+ {
+ }
+
~SparkleInterface()
{
[updater release];
SUUpdater* updater;
NCSparkleUpdaterDelegate *delegate;
+
+private:
+ SparkleUpdater * const q;
};
// Delete ~/Library//Preferences/com.owncloud.desktopclient.plist to re-test
SparkleUpdater::SparkleUpdater(const QUrl& appCastUrl)
: Updater()
- , _interface(std::make_unique<SparkleInterface>())
+ , _interface(std::make_unique<SparkleInterface>(this))
{
_interface->delegate = [[NCSparkleUpdaterDelegate alloc] init];
[_interface->delegate retain];
return true;
}
-
void SparkleUpdater::checkForUpdate()
{
qCDebug(OCC::lcUpdater) << "Checking for updates.";