From e4d57f741e5043fd9c66023f39812910c9068b06 Mon Sep 17 00:00:00 2001 From: mgrojo Date: Mon, 6 Jan 2020 00:53:25 +0100 Subject: [PATCH] Set SQL editor in Modify Table dialog as read-only programmatically Otherwise the UI dynamic property does not seem to work, although it use to and should. Please, improve it if a way to return to the correct behaviour. Fixes issue #2078 --- src/EditTableDialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EditTableDialog.cpp b/src/EditTableDialog.cpp index f9d4b502..02a23030 100644 --- a/src/EditTableDialog.cpp +++ b/src/EditTableDialog.cpp @@ -142,6 +142,8 @@ EditTableDialog::EditTableDialog(DBBrowserDB& db, const sqlb::ObjectIdentifier& // (De-)activate fields checkInput(); + + ui->sqlTextEdit->setReadOnly(true); } EditTableDialog::~EditTableDialog()