From 0825f644e0b98190d68e0b63c4204fa8282e84b4 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 14 Aug 2018 09:56:20 +0200 Subject: core: make qPref.* use static Prepare qPref.* to run load/sync Make variables and methods static to give easy access Make getter inline to give faster access Signed-off-by: Jan Iversen :wq --- core/settings/qPrefGeneral.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/settings/qPrefGeneral.cpp') diff --git a/core/settings/qPrefGeneral.cpp b/core/settings/qPrefGeneral.cpp index 4364ce731..85c828de8 100644 --- a/core/settings/qPrefGeneral.cpp +++ b/core/settings/qPrefGeneral.cpp @@ -51,7 +51,7 @@ void qPrefGeneral::set_default_file_behavior(enum def_file_behavior value) prefs.default_file_behavior = value; } disk_default_file_behavior(true); - emit default_file_behavior_changed(value); + emit qPrefGeneral::instance()->default_file_behavior_changed(value); } } void qPrefGeneral::disk_default_file_behavior(bool doSync) -- cgit v1.2.3-70-g09d2