mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Remove syntax highlighting for tables when DB is closed
See issue #1800
This commit is contained in:
@@ -922,8 +922,10 @@ bool MainWindow::fileClose()
|
||||
ui->editLogUser->clear();
|
||||
ui->editLogErrorLog->clear();
|
||||
|
||||
// Remove completion for identifiers
|
||||
// Remove completion and highlighting for identifiers
|
||||
SqlTextEdit::sqlLexer->setTableNames(SqlUiLexer::QualifiedTablesMap());
|
||||
for(int i=0; i < ui->tabSqlAreas->count(); i++)
|
||||
qobject_cast<SqlExecutionArea*>(ui->tabSqlAreas->widget(i))->getEditor()->reloadKeywords();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user