StatusBar proper update

This commit is contained in:
giomba 2019-08-07 12:23:03 +02:00
parent 26c71d86a7
commit ef77cc37be
2 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,6 @@ MainWindow::~MainWindow() {
}
void MainWindow::on_buttonCerca_clicked() {
status(Ui::INFO, "Message placeholder");
if (!db.open()) connectDatabase();
query.prepare("SELECT id, nome, cognome FROM socio WHERE cognome LIKE :cognome");

View File

@ -43,6 +43,7 @@ namespace Ui {
/* show message in GUI */
if (statusBar != nullptr) {
statusBar->showMessage(message, timeout);
statusBar->repaint();
}
}