summaryrefslogtreecommitdiffhomepage
path: root/options/connector.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-21 17:36:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 00:05:15 +0200
commit6e943c80dabdeb3c43e0a6b635c24defbc31912f (patch)
tree8d4d25eab4ce30fa3619332b336110d6fb849d4e /options/connector.cpp
parente3fc3ee8bb4627ace30217b217d02151173059d6 (diff)
options/bundle: treat bundles with empty names specially
They're now not cached in the singleton. Operations like "reload", "save", and connector stuff short-circuit to prevent anything done with them
Diffstat (limited to 'options/connector.cpp')
-rw-r--r--options/connector.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/options/connector.cpp b/options/connector.cpp
index c1bbce39..680283cf 100644
--- a/options/connector.cpp
+++ b/options/connector.cpp
@@ -36,6 +36,9 @@ bool connector::on_value_destructed_impl(const QString& name, const base_value*
void connector::on_value_destructed(const QString& name, const base_value* val)
{
+ if (!name.size())
+ return;
+
const bool ok = on_value_destructed_impl(name, val);
if (!ok)
@@ -48,6 +51,9 @@ void connector::on_value_destructed(const QString& name, const base_value* val)
void connector::on_value_created(const QString& name, const base_value* val)
{
+ if (!name.size())
+ return;
+
QMutexLocker l(get_mtx());
if (on_value_destructed_impl(name, val))