summaryrefslogtreecommitdiffhomepage
path: root/options/bundle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'options/bundle.cpp')
-rw-r--r--options/bundle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/options/bundle.cpp b/options/bundle.cpp
index e4c0ffbd..482e46d1 100644
--- a/options/bundle.cpp
+++ b/options/bundle.cpp
@@ -1,6 +1,9 @@
#include "bundle.hpp"
#include "value.hpp"
+#include <QThread>
+#include <QApplication>
+
using options::base_value;
namespace options
@@ -58,6 +61,9 @@ bool bundle::contains(const QString &name) const
void bundle::save_deferred(QSettings& s)
{
+ if (QThread::currentThread() != qApp->thread())
+ qCritical() << "group::save - current thread not ui thread";
+
if (group_name.size() == 0)
return;