Permalink
Browse files

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.
  • Loading branch information...
MKleusberg committed Aug 9, 2018
1 parent c9d651c commit a23c0a0852ba0b59d3c9fea5f40add845a1307d8
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/MainWindow.cpp
@@ -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")

0 comments on commit a23c0a0

Please sign in to comment.