summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordonbright <hugh.m.bright@gmail.com>2013-02-17 03:55:51 (GMT)
committerdonbright <hugh.m.bright@gmail.com>2013-02-17 03:55:51 (GMT)
commitabc9da96c89b337377ee62ac29ee54e4e7b0a514 (patch)
tree69713a0f79e20a7bfadc294c617ca5b8a36a117a /src
parent593033e89a4619d5ecf97b5c0ea6ae3aad76a44c (diff)
parent09edcdf822c599ffd7685519abe7e192b4b598b9 (diff)
Merge pull request #278 from openscad/autoup_not_implemented
fix build errors, display 'not implemented' message on win32/linux
Diffstat (limited to 'src')
-rw-r--r--src/Preferences.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Preferences.cc b/src/Preferences.cc
index fe7462a..7c7aee4 100644
--- a/src/Preferences.cc
+++ b/src/Preferences.cc
@@ -26,6 +26,7 @@
#include "Preferences.h"
+#include <QMessageBox>
#include <QFontDatabase>
#include <QKeyEvent>
#include <QSettings>
@@ -192,10 +193,19 @@ void Preferences::on_fontSize_editTextChanged(const QString &size)
emit fontChanged(getValue("editor/fontfamily").toString(), intsize);
}
+void unimplemented_msg()
+{
+ QMessageBox mbox;
+ mbox.setText("Sorry, this feature is not implemented on your Operating System");
+ mbox.exec();
+}
+
void Preferences::on_updateCheckBox_toggled(bool on)
{
if (AutoUpdater *updater =AutoUpdater::updater()) {
updater->setAutomaticallyChecksForUpdates(on);
+ } else {
+ unimplemented_msg();
}
}
@@ -203,6 +213,8 @@ void Preferences::on_snapshotCheckBox_toggled(bool on)
{
if (AutoUpdater *updater =AutoUpdater::updater()) {
updater->setEnableSnapshots(on);
+ } else {
+ unimplemented_msg();
}
}
@@ -210,6 +222,8 @@ void Preferences::on_checkNowButton_clicked()
{
if (AutoUpdater *updater =AutoUpdater::updater()) {
updater->checkForUpdates();
+ } else {
+ unimplemented_msg();
}
}
contact: Jan Huwald // Impressum