Hide status message when an error message is present

To avoid confusion, this code update makes the status text empty whenever
there is an error message. This makes the error message more prominent.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Signed-off-by: Thiago Macieira <thiago@macieira.org>
This commit is contained in:
Joseph W. Joshua 2014-07-31 18:43:52 +03:00 committed by Thiago Macieira
parent 4cc60ea940
commit 24cb0b0496

View file

@ -246,6 +246,7 @@ void ConfigureDiveComputerDialog::configMessage(QString msg)
void ConfigureDiveComputerDialog::configError(QString err) void ConfigureDiveComputerDialog::configError(QString err)
{ {
ui->statusLabel->setText("");
ui->errorLabel->setText(err); ui->errorLabel->setText(err);
} }