fix RecentDatabases, closes #386

This commit is contained in:
thez3ro 2017-03-26 22:55:56 +02:00
parent 1418712b4c
commit 7ca13b3d51
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
3 changed files with 20 additions and 8 deletions

View file

@ -378,6 +378,11 @@ void MainWindow::openRecentDatabase(QAction* action)
void MainWindow::clearLastDatabases()
{
config()->set("LastDatabases", QVariant());
bool inWelcomeWidget = (m_ui->stackedWidget->currentIndex() == 2);
if (inWelcomeWidget) {
m_ui->welcomeWidget->refreshLastDatabases();
}
}
void MainWindow::openDatabase(const QString& fileName, const QString& pw, const QString& keyFile)