slightly improve wscript
c++ code for auto-update compiles
Change-Id: Iad2aebf330f8620573db3fec615d83086c94c779
diff --git a/gui/chronosharegui.cpp b/gui/chronosharegui.cpp
index d37b985..1bd0c1c 100644
--- a/gui/chronosharegui.cpp
+++ b/gui/chronosharegui.cpp
@@ -42,7 +42,7 @@
, m_executor (1)
#endif
#ifdef SPARKLE_SUPPORTED
- , m_autoUpdate(0)
+ , m_autoUpdate(new SparkleAutoUpdate(tr("http://no-url.org")))
#endif
{
setWindowTitle("Settings");
@@ -152,6 +152,7 @@
#endif
#ifdef SPARKLE_SUPPORTED
delete m_autoUpdate;
+ delete m_checkForUpdates;
#endif
delete m_openFolder;
delete m_viewSettings;
@@ -215,8 +216,8 @@
#endif
#ifdef SPARKLE_SUPPORTED
- m_autoUpdate = new QAction (tr("Check For Updates"), this);
- connect (m_autoUpdate, SIGNAL(triggered()), this, SLOT(onCheckForUpdates()));
+ m_checkForUpdates = new QAction (tr("Check For Updates"), this);
+ connect (m_checkForUpdates, SIGNAL(triggered()), this, SLOT(onCheckForUpdates()));
#endif
// create the "quit program" action
diff --git a/gui/chronosharegui.h b/gui/chronosharegui.h
index 8403a66..e0db4ba 100644
--- a/gui/chronosharegui.h
+++ b/gui/chronosharegui.h
@@ -27,7 +27,7 @@
#if __APPLE__ && HAVE_SPARKLE
#define SPARKLE_SUPPORTED 1
-#include "auto-update.h"
+#include "sparkle-auto-update.h"
#endif
#include <QtGui>