mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Switch back to WelcomeWidget when the last database has been closed.
This commit is contained in:
parent
f145cb69de
commit
5201001f3a
@ -251,6 +251,9 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
|||||||
if (tabIndex != -1 && m_ui->stackedWidget->currentIndex() == 2) {
|
if (tabIndex != -1 && m_ui->stackedWidget->currentIndex() == 2) {
|
||||||
switchToDatabases();
|
switchToDatabases();
|
||||||
}
|
}
|
||||||
|
else if (tabIndex == -1 && m_ui->stackedWidget->currentIndex() == 0) {
|
||||||
|
m_ui->stackedWidget->setCurrentIndex(2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::closeEvent(QCloseEvent* event) {
|
void MainWindow::closeEvent(QCloseEvent* event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user