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

Method menuIdentityCreateBackupOnClick

src/Client.cpp:1232–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232void 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
1241void Client::menuIdentityLoadBackupOnClick(QString const& legacyClientConfigurationFileName) {
1242 openmittsu::wizards::LoadBackupWizard loadBackupWizard(legacyClientConfigurationFileName, this);

Callers

nothing calls this directly

Calls 2

hasDatabaseMethod · 0.80
getBackupMethod · 0.45

Tested by

no test coverage detected