From 7a9f310778b9be6cc0b7d503df73ca461fa95083 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Sun, 15 Jul 2018 23:39:40 +0200 Subject: [PATCH] Don't allow editing the SQL preview in the Edit Index dialog Don't allow the user to edit the SQL preview in the Edit Index dialog because it's just supposed to be a preview. --- src/EditIndexDialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/EditIndexDialog.cpp b/src/EditIndexDialog.cpp index 8c8ed760..d1155bdd 100644 --- a/src/EditIndexDialog.cpp +++ b/src/EditIndexDialog.cpp @@ -16,6 +16,7 @@ EditIndexDialog::EditIndexDialog(DBBrowserDB& db, const sqlb::ObjectIdentifier& { // Create UI ui->setupUi(this); + ui->sqlTextEdit->setReadOnly(true); // Get list of tables, sort it alphabetically and fill the combobox QMap dbobjs; // Map from display name to full object identifier