| 1239 | } |
| 1240 | |
| 1241 | void 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 | |
| 1252 | void Client::menuDatabaseImportLegacyContactsAndGroupsOnClick(QString const& legacyContactsFileName) { |
| 1253 | if (!m_databaseWrapper.hasDatabase()) { |
nothing calls this directly
no test coverage detected