summaryrefslogtreecommitdiffhomepage
path: root/options/bundle.hpp
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/bundle.hpp
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/bundle.hpp')
-rw-r--r--options/bundle.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/options/bundle.hpp b/options/bundle.hpp
index 841df273..a948ac44 100644
--- a/options/bundle.hpp
+++ b/options/bundle.hpp
@@ -84,9 +84,6 @@ OPENTRACK_OPTIONS_EXPORT bundler& singleton();
using bundle_type = detail::bundle;
using bundle = std::shared_ptr<bundle_type>;
-inline bundle make_bundle(const QString& name)
-{
- return detail::singleton().make_bundle(name);
-}
+OPENTRACK_OPTIONS_EXPORT bundle make_bundle(const QString& name);
}