Skip to content

Commit 0046b9f

Browse files
alexbruynyalldawson
authored andcommittedMay 11, 2018
add single item to matrix parameter by default
1 parent 18f3151 commit 0046b9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎python/plugins/processing/gui/matrixmodelerwidget.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ def __init__(self, parent=None):
5757
self.btnRemoveRow.clicked.connect(self.removeRows)
5858
self.btnClear.clicked.connect(self.clearTable)
5959

60-
self.tblView.setModel(QStandardItemModel())
60+
items = [QStandardItem('0')]
61+
model = QStandardItemModel()
62+
model.appendColumn(items)
63+
self.tblView.setModel(model)
6164

6265
self.tblView.horizontalHeader().sectionDoubleClicked.connect(self.changeHeader)
6366

0 commit comments

Comments
 (0)
Please sign in to comment.