fix RecentDatabases, closes #386

This commit is contained in:
thez3ro committed 2017-03-29 17:09:33 +02:00
1 parent 1418712b4c
commit 7ca13b3d51
3 files changed
+20 -8

No files matched your search

+5
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)