mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-04-30 00:49:27 -05:00
Fix PRAGMA view when loading a project file
When loading a project file which changes the foreign_keys or the case_sensitive_like PRAGMAs while being in the Edit Pragma tab didn't update the UI accordingly. Only after changing the tab and returning to the Edit Pragma tab updated the controls.
This commit is contained in:
@@ -2364,6 +2364,7 @@ bool MainWindow::loadProject(QString filename, bool readOnly)
|
||||
db.setPragma("foreign_keys", xml.attributes().value("foreign_keys").toString());
|
||||
if(xml.attributes().hasAttribute("case_sensitive_like"))
|
||||
db.setPragma("case_sensitive_like", xml.attributes().value("case_sensitive_like").toString());
|
||||
loadPragmas();
|
||||
} else if(xml.name() == "window") {
|
||||
// Window settings
|
||||
while(xml.readNext() != QXmlStreamReader::EndElement && xml.name() != "window")
|
||||
|
||||
Reference in New Issue
Block a user