@@ -1165,8 +1165,10 @@ void MainWindow::switchToDatabases()
1165
1165
{
1166
1166
if (m_ui->tabWidget ->currentIndex () == -1 ) {
1167
1167
m_ui->stackedWidget ->setCurrentIndex (WelcomeScreen);
1168
+ statusBar ()->setAutoFillBackground (false );
1168
1169
} else {
1169
1170
m_ui->stackedWidget ->setCurrentIndex (DatabaseTabScreen);
1171
+ statusBar ()->setAutoFillBackground (true );
1170
1172
}
1171
1173
}
1172
1174
@@ -1175,6 +1177,7 @@ void MainWindow::switchToSettings(bool enabled)
1175
1177
if (enabled) {
1176
1178
m_ui->settingsWidget ->loadSettings ();
1177
1179
m_ui->stackedWidget ->setCurrentIndex (SettingsScreen);
1180
+ statusBar ()->setAutoFillBackground (true );
1178
1181
} else {
1179
1182
switchToDatabases ();
1180
1183
}
@@ -1186,6 +1189,7 @@ void MainWindow::togglePasswordGenerator(bool enabled)
1186
1189
m_ui->passwordGeneratorWidget ->loadSettings ();
1187
1190
m_ui->passwordGeneratorWidget ->regeneratePassword ();
1188
1191
m_ui->stackedWidget ->setCurrentIndex (PasswordGeneratorScreen);
1192
+ statusBar ()->setAutoFillBackground (false );
1189
1193
} else {
1190
1194
m_ui->passwordGeneratorWidget ->saveSettings ();
1191
1195
switchToDatabases ();
@@ -1275,8 +1279,10 @@ void MainWindow::databaseTabChanged(int tabIndex)
1275
1279
{
1276
1280
if (tabIndex != -1 && m_ui->stackedWidget ->currentIndex () == WelcomeScreen) {
1277
1281
m_ui->stackedWidget ->setCurrentIndex (DatabaseTabScreen);
1282
+ statusBar ()->setAutoFillBackground (true );
1278
1283
} else if (tabIndex == -1 && m_ui->stackedWidget ->currentIndex () == DatabaseTabScreen) {
1279
1284
m_ui->stackedWidget ->setCurrentIndex (WelcomeScreen);
1285
+ statusBar ()->setAutoFillBackground (false );
1280
1286
}
1281
1287
1282
1288
m_actionMultiplexer.setCurrentObject (m_ui->tabWidget ->currentDatabaseWidget ());
0 commit comments