+ // Read global settings from config file
+ QSettings s;
+ s.beginGroup("Global");
+ QString key;
+ foreach(key, s.childKeys()) {
+ global->updateData(key, s.value(key));
+ }
+ global->updateData("CoreReady", true);
+ // Now that we are in sync, we can connect signals to automatically store further updates.
+ // I don't think we care if global data changed locally or if it was updated by a client.
+ connect(global, SIGNAL(dataUpdatedRemotely(QString)), SLOT(globalDataUpdated(QString)));
+ connect(global, SIGNAL(dataPutLocally(QString)), SLOT(globalDataUpdated(QString)));