diff options
author | Joseph W. Joshua <joejoshw@gmail.com> | 2014-07-31 18:43:52 +0300 |
---|---|---|
committer | Thiago Macieira <thiago@macieira.org> | 2014-08-13 10:48:15 -0700 |
commit | 24cb0b0496e8f593f22f3e1cd25b286ad8c7031f (patch) | |
tree | 8ac418bd8d06e73941e5841c179f1918f4f2da57 /qt-ui/configuredivecomputerdialog.cpp | |
parent | 4cc60ea940621ff21d082dad76bd9f2a710296f7 (diff) | |
download | subsurface-24cb0b0496e8f593f22f3e1cd25b286ad8c7031f.tar.gz |
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>
Diffstat (limited to 'qt-ui/configuredivecomputerdialog.cpp')
-rw-r--r-- | qt-ui/configuredivecomputerdialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index c9e8da751..293dd244b 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -246,6 +246,7 @@ void ConfigureDiveComputerDialog::configMessage(QString msg) void ConfigureDiveComputerDialog::configError(QString err) { + ui->statusLabel->setText(""); ui->errorLabel->setText(err); } |