summaryrefslogtreecommitdiff
path: root/src/openscad.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-11 23:29:45 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-11 23:29:45 (GMT)
commit40cd64042aec8a452283d60cbb676b9242d9a346 (patch)
treefb23c498afc75c03df8f97f7c2eda466d1168c30 /src/openscad.cc
parent79ce1e47d0ff250aed46ddc3058ea4f694900bb0 (diff)
parentd9c4b779421b226d0ad1eed492611eb5ddb843ed (diff)
Merge branch 'master' of github.com:openscad/openscad into resize5
Diffstat (limited to 'src/openscad.cc')
-rw-r--r--src/openscad.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index 75d7b9d..682ccb7 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -55,7 +55,9 @@
#ifdef Q_WS_MAC
#include "EventFilter.h"
#include "AppleEvents.h"
-#include "SparkleAutoUpdater.h"
+#ifdef OPENSCAD_DEPLOY
+ #include "SparkleAutoUpdater.h"
+#endif
#endif
#include "Camera.h"
@@ -483,13 +485,11 @@ int main(int argc, char **argv)
installAppleEventHandlers();
#endif
-#ifndef DEBUG
-#ifdef Q_WS_MAC
+#if defined(OPENSCAD_DEPLOY) && defined(Q_WS_MAC)
AutoUpdater *updater = new SparkleAutoUpdater;
AutoUpdater::setUpdater(updater);
if (updater->automaticallyChecksForUpdates()) updater->checkForUpdates();
#endif
-#endif
QString qfilename;
if (filename) qfilename = QString::fromStdString(boosty::stringy(boosty::absolute(filename)));
contact: Jan Huwald // Impressum