src/config.cpp

changeset 513
29eb671b34f6
parent 493
16766ac1bbd9
child 539
72ad83a67165
equal deleted inserted replaced
512:adab82ab13a5 513:29eb671b34f6
59 // ============================================================================= 59 // =============================================================================
60 // Load the configuration from file 60 // Load the configuration from file
61 // ----------------------------------------------------------------------------- 61 // -----------------------------------------------------------------------------
62 bool Config::load() 62 bool Config::load()
63 { QSettings* settings = getSettingsObject(); 63 { QSettings* settings = getSettingsObject();
64 print ("config::load: Loading configuration file from %1\n", settings->fileName()); 64 log ("config::load: Loading configuration file from %1\n", settings->fileName());
65 65
66 for (Config* cfg : g_configPointers) 66 for (Config* cfg : g_configPointers)
67 { if (!cfg) 67 { if (!cfg)
68 break; 68 break;
69 69
78 // ============================================================================= 78 // =============================================================================
79 // Save the configuration to disk 79 // Save the configuration to disk
80 // ----------------------------------------------------------------------------- 80 // -----------------------------------------------------------------------------
81 bool Config::save() 81 bool Config::save()
82 { QSettings* settings = getSettingsObject(); 82 { QSettings* settings = getSettingsObject();
83 print ("Saving configuration to %1...\n", settings->fileName()); 83 log ("Saving configuration to %1...\n", settings->fileName());
84 84
85 for (Config* cfg : g_configPointers) 85 for (Config* cfg : g_configPointers)
86 { if (!cfg) 86 { if (!cfg)
87 break; 87 break;
88 88

mercurial