| 593 | } |
| 594 | |
| 595 | void Client::askForDatabaseRemovalFromConfig(QString const& databaseLocation) { |
| 596 | // TODO: Make an option for "never" |
| 597 | auto const answerButton = QMessageBox::question(this, tr("Forget this database and not ask to open it again?"), tr("The database '%1' could not be opened. Do you want openMittsu to forget this database and not ask you to open it automatically again?\n\nYou can always open it manually using the 'Open...' button in the database section.").arg(databaseLocation)); |
| 598 | if (answerButton == QMessageBox::Yes) { |
| 599 | LOGGER_DEBUG("Removing key \"FILEPATH_DATABASE\" from stored settings as the file+password was invalid."); |
| 600 | m_optionMaster->setOption(openmittsu::options::Options::FILEPATH_DATABASE, ""); |
| 601 | } |
| 602 | } |
| 603 | |
| 604 | bool Client::checkServerGroupInformationForId() { |
| 605 | if (m_databaseWrapper.hasDatabase()) { |