MCPcopy Create free account
hub / github.com/blizzard4591/openMittsu / menuIdentityLoadBackupOnClick

Method menuIdentityLoadBackupOnClick

src/Client.cpp:1241–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1239}
1240
1241void Client::menuIdentityLoadBackupOnClick(QString const& legacyClientConfigurationFileName) {
1242 openmittsu::wizards::LoadBackupWizard loadBackupWizard(legacyClientConfigurationFileName, this);
1243 int const result = loadBackupWizard.exec();
1244 if (result == 1) {
1245 QString const dbFileName = loadBackupWizard.getDatabaseFileName();
1246 if (!dbFileName.isEmpty() && !dbFileName.isNull()) {
1247 openDatabaseFile(dbFileName);
1248 }
1249 }
1250}
1251
1252void Client::menuDatabaseImportLegacyContactsAndGroupsOnClick(QString const& legacyContactsFileName) {
1253 if (!m_databaseWrapper.hasDatabase()) {

Callers

nothing calls this directly

Calls 3

getDatabaseFileNameMethod · 0.80
isEmptyMethod · 0.80
isNullMethod · 0.45

Tested by

no test coverage detected