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:
Martin Kleusberg
2018-08-09 14:08:09 +02:00
parent c9d651c7b2
commit a23c0a0852
+1
View File
@@ -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")