Correctly initialize standalone PW generator mode

This commit is contained in:
Balazs Gyurak 2019-11-17 19:33:28 +00:00 committed by Jonathan White
parent 024e00cc97
commit 697f265249

View File

@ -885,8 +885,8 @@ void MainWindow::switchToPasswordGen(bool enabled)
if (enabled) { if (enabled) {
m_ui->passwordGeneratorWidget->loadSettings(); m_ui->passwordGeneratorWidget->loadSettings();
m_ui->passwordGeneratorWidget->regeneratePassword(); m_ui->passwordGeneratorWidget->regeneratePassword();
m_ui->passwordGeneratorWidget->setStandaloneMode(true);
m_ui->stackedWidget->setCurrentIndex(PasswordGeneratorScreen); m_ui->stackedWidget->setCurrentIndex(PasswordGeneratorScreen);
m_ui->passwordGeneratorWidget->setStandaloneMode(true);
} else { } else {
m_ui->passwordGeneratorWidget->saveSettings(); m_ui->passwordGeneratorWidget->saveSettings();
switchToDatabases(); switchToDatabases();