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
This commit is contained in:
mgrojo
2020-01-06 00:53:25 +01:00
parent 9b670b4b94
commit e4d57f741e

View File

@@ -142,6 +142,8 @@ EditTableDialog::EditTableDialog(DBBrowserDB& db, const sqlb::ObjectIdentifier&
// (De-)activate fields
checkInput();
ui->sqlTextEdit->setReadOnly(true);
}
EditTableDialog::~EditTableDialog()