mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Avoid some warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user