remove some ifdefs, otherwise Qt can't create SLOT
Change-Id: I2642b832d57ef494dec59518dbb348eb19ea0de8
diff --git a/gui/chronosharegui.cpp b/gui/chronosharegui.cpp
index 9fdd630..16960b3 100644
--- a/gui/chronosharegui.cpp
+++ b/gui/chronosharegui.cpp
@@ -327,13 +327,13 @@
#endif
}
-#ifdef SPARKLE_SUPPORTED
void
ChronoShareGui::onCheckForUpdates()
{
+#ifdef SPARKLE_SUPPORTED
m_autoUpdate->checkForUpdates();
-}
#endif
+}
void ChronoShareGui::setIcon()
{
diff --git a/gui/chronosharegui.h b/gui/chronosharegui.h
index 6497d5f..fffaca7 100644
--- a/gui/chronosharegui.h
+++ b/gui/chronosharegui.h
@@ -83,9 +83,8 @@
// click on adhoc button
void onAdHocChange (bool state); // cannot be protected with #ifdef. otherwise something fishy with QT
-#ifdef SPARKLE_SUPPORTED
+
void onCheckForUpdates();
-#endif
private:
void checkFileAction(const std::string &, int, int);