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

@@ -225,7 +225,6 @@ void ExtendedTableWidget::copy(const bool withHeaders)
// If we got here, there are multiple selected cells, none of which contains binary data.
// In this case, write a table both in HTML and text formats to clipboard
QModelIndex first = indices.first();
QString result;
QString htmlResult = "<html><header><style>br{mso-data-placement:same-cell;}</style></header><body><table>";
int currentRow = 0;

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)");
}
}