| 1220 | } |
| 1221 | |
| 1222 | void Client::menuIdentityShowPublicKeyOnClick() { |
| 1223 | if (!m_databaseWrapper.hasDatabase()) { |
| 1224 | 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)."); |
| 1225 | } else { |
| 1226 | std::shared_ptr<openmittsu::backup::IdentityBackup> const backupData = m_databaseWrapper.getBackup(); |
| 1227 | openmittsu::dialogs::ShowIdentityAndPublicKeyDialog showIdentityAndPublicKeyDialog(backupData->getClientContactId(), backupData->getClientLongTermKeyPair(), this); |
| 1228 | showIdentityAndPublicKeyDialog.exec(); |
| 1229 | } |
| 1230 | } |
| 1231 | |
| 1232 | void Client::menuIdentityCreateBackupOnClick() { |
| 1233 | if (!m_databaseWrapper.hasDatabase()) { |
nothing calls this directly
no test coverage detected