Slightly simplify CompletionModel.new_item.
There was no need to have a branch based on whether the misc value was None or not.
This commit is contained in:
parent
93f8984987
commit
d4f2a70f83
@ -79,10 +79,7 @@ class CompletionModel(QStandardItemModel):
|
|||||||
|
|
||||||
nameitem = QStandardItem(name)
|
nameitem = QStandardItem(name)
|
||||||
descitem = QStandardItem(desc)
|
descitem = QStandardItem(desc)
|
||||||
if misc is None:
|
miscitem = QStandardItem(misc)
|
||||||
miscitem = QStandardItem()
|
|
||||||
else:
|
|
||||||
miscitem = QStandardItem(misc)
|
|
||||||
|
|
||||||
cat.appendRow([nameitem, descitem, miscitem])
|
cat.appendRow([nameitem, descitem, miscitem])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user