mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user