void AddressManager::loadSettings(const QString& lookupString) { if (lookupString.isEmpty()) { handleLookupString(SettingHandles::currentAddress.get().toString()); } else { handleLookupString(lookupString); } }
void AddressManager::loadSettings(const QString& lookupString) { if (lookupString.isEmpty()) { QSettings settings; settings.beginGroup(ADDRESS_MANAGER_SETTINGS_GROUP); handleLookupString(settings.value(SETTINGS_CURRENT_ADDRESS_KEY).toString()); } else { handleLookupString(lookupString); } }