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.
This commit is contained in:
Martin Kleusberg
2018-07-15 23:39:40 +02:00
parent 1b7ba4a7e7
commit 7a9f310778

View File

@@ -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<QString, sqlb::ObjectIdentifier> dbobjs; // Map from display name to full object identifier