Avoid some warnings

This commit is contained in:
Martin Kleusberg
2017-11-29 22:22:05 +01:00
parent 3aef8adc9a
commit b1e42d08c6
2 changed files with 2 additions and 1 deletions

View File

@@ -61,10 +61,12 @@ void SqlExecutionArea::finishExecution(const QString& result, const bool ok)
ui->editErrors->setPlainText(result);
// Set reddish background when not ok
if (showErrorIndicators)
{
if (ok)
ui->editErrors->setStyleSheet("");
else
ui->editErrors->setStyleSheet("color: white; background-color: rgb(255, 102, 102)");
}
}