diff --git a/src/ExtendedTableWidget.cpp b/src/ExtendedTableWidget.cpp index f414096b..8f75f2ad 100644 --- a/src/ExtendedTableWidget.cpp +++ b/src/ExtendedTableWidget.cpp @@ -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 = "
"; int currentRow = 0; diff --git a/src/SqlExecutionArea.cpp b/src/SqlExecutionArea.cpp index daece62b..fc3db0af 100644 --- a/src/SqlExecutionArea.cpp +++ b/src/SqlExecutionArea.cpp @@ -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)"); + } }