summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-27 12:52:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-27 12:52:35 +0200
commitde08c69d0c66f06bd165e3b6bd63b71ac83db9a9 (patch)
tree637c6569e5ce292db521e5ece6042418100cc393 /gui
parent841d3b28d6bda2fca3275ade618c28627b0565c2 (diff)
cleanup
Diffstat (limited to 'gui')
-rw-r--r--gui/init.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/init.cpp b/gui/init.cpp
index a3932047..4609d535 100644
--- a/gui/init.cpp
+++ b/gui/init.cpp
@@ -190,7 +190,7 @@ static int run_window(std::unique_ptr<QWidget> main_window)
{
if (!main_window->isEnabled())
{
- qDebug() << "exit before window created";
+ qDebug() << "opentrack: exit before window created";
return 2;
}
@@ -228,7 +228,9 @@ int otr_main(int argc, char** argv, std::function<QWidget*()> const& make_main_w
qDebug() << "locale:" << forced_locale;
}
- const bool no_i18n = options::globals::with_global_settings_object([](QSettings& s) {
+ using namespace options::globals;
+
+ const bool no_i18n = with_global_settings_object([](QSettings& s) {
return s.value("disable-translation", false).toBool();
});