Qt: Fix advanced setting text being editable

This commit is contained in:
Connor McLaughlin 2020-09-07 21:13:32 +10:00
parent 9bb278b166
commit 1e6d50e4dc
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ static void addBooleanTweakOption(QtHostInterface* host_interface, QTableWidget*
table->insertRow(row);
QTableWidgetItem* name_item = new QTableWidgetItem(name);
name_item->setFlags(name_item->flags() & ~(Qt::ItemIsEditable | Qt::ItemIsSelectable));
table->setItem(row, 0, name_item);
QCheckBox* cb = new QCheckBox(table);