Simplify code for reloading settings

This simplifies the code for reloading the settings in the Execute SQL
area.

It might also fix a bug where setting a new font for the success/error
message at the bottom of each Execute SQL tab would be overwritten to
Monospace immediately after setting it.
This commit is contained in:
Martin Kleusberg
2017-03-16 16:59:23 +01:00
parent 836966dcf5
commit f67817ee68
3 changed files with 11 additions and 24 deletions

View File

@@ -70,12 +70,6 @@ ExtendedTableWidget *SqlExecutionArea::getTableResult()
return ui->tableResult;
}
QTextEdit* SqlExecutionArea::getResultView()
{
return ui->editErrors;
}
void SqlExecutionArea::enableSaveButton(bool enable)
{
ui->buttonSave->setEnabled(enable);
@@ -125,4 +119,7 @@ void SqlExecutionArea::reloadSettings()
ui->splitter->setOrientation(Qt::Horizontal);
else
ui->splitter->setOrientation(Qt::Vertical);
// Set prefetch settings
model->setChunkSize(Settings::getSettingsValue("db", "prefetchsize").toInt());
}