diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-09 08:51:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-09 15:00:58 +0200 |
commit | 6bc3fe31a3f354afc7be870a4a2d375ab6c746b6 (patch) | |
tree | 39b439b16cb872b3d982a6083a546456001d0f8e /options/bundle.cpp | |
parent | cc6fc6577940df89c57db08743b181291c2a4b43 (diff) |
add support for migrations
They're run from the UI thread so can even be interactive.
Diffstat (limited to 'options/bundle.cpp')
-rw-r--r-- | options/bundle.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/options/bundle.cpp b/options/bundle.cpp index 48689720..61be509a 100644 --- a/options/bundle.cpp +++ b/options/bundle.cpp @@ -16,6 +16,10 @@ bundle::bundle(const QString& group_name) { } +bundle::~bundle() +{ +} + void bundle::reload() { if (group_name.size()) @@ -114,7 +118,7 @@ void bundler::bundle_decf(const bundler::k& key) if (--std::get<0>(implsgl_data[key]) == 0) { - qDebug() << "bundle -" << key; + //qDebug() << "bundle -" << key; implsgl_data.erase(key); } @@ -132,7 +136,7 @@ void bundler::after_profile_changed_() mem<v> bundle_ = bundle.lock(); if (bundle_) { - qDebug() << "bundle: reverting" << kv.first << "due to profile change"; + //qDebug() << "bundle: reverting" << kv.first << "due to profile change"; bundle_->reload(); } } @@ -163,7 +167,7 @@ std::shared_ptr<bundler::v> bundler::make_bundle(const bundler::k &key) return shared; } - qDebug() << "bundle +" << key; + //qDebug() << "bundle +" << key; std::shared_ptr<v> shr(new v(key), [this](v* val) { bundle_decf(val->name()); }); |