mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 06:22:53 -04:00
Switch back to WelcomeWidget when the last database has been closed.
This commit is contained in:
parent
f145cb69de
commit
5201001f3a
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue