| 1230 | } |
| 1231 | |
| 1232 | void Client::menuIdentityCreateBackupOnClick() { |
| 1233 | if (!m_databaseWrapper.hasDatabase()) { |
| 1234 | QMessageBox::warning(this, "No database loaded", "Before you can use this feature you need to load a database from file (see main screen) or create one using a backup of your existing ID (see Identity -> Load Backup)."); |
| 1235 | } else { |
| 1236 | openmittsu::wizards::BackupCreationWizard backupCreationWizard(*m_databaseWrapper.getBackup(), this); |
| 1237 | backupCreationWizard.exec(); |
| 1238 | } |
| 1239 | } |
| 1240 | |
| 1241 | void Client::menuIdentityLoadBackupOnClick(QString const& legacyClientConfigurationFileName) { |
| 1242 | openmittsu::wizards::LoadBackupWizard loadBackupWizard(legacyClientConfigurationFileName, this); |
nothing calls this directly
no test coverage detected