summaryrefslogtreecommitdiffhomepage
path: root/migration/20180118_00-reltrans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'migration/20180118_00-reltrans.cpp')
-rw-r--r--migration/20180118_00-reltrans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/20180118_00-reltrans.cpp b/migration/20180118_00-reltrans.cpp
index ba35e7f0..7a2ddec6 100644
--- a/migration/20180118_00-reltrans.cpp
+++ b/migration/20180118_00-reltrans.cpp
@@ -35,7 +35,7 @@ struct reltrans_enum : migration
void run() override
{
auto b = make_bundle("opentrack-ui");
- bool value = b->get<bool>(old_name);
+ bool value = b->get_variant(old_name).value<bool>();
b->store_kv(new_name, int(value ? reltrans_enabled : reltrans_disabled));
b->save();
}