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()
 {