Skip to content
Permalink
Browse files

[processing] correctly handle editable and non-editable fixed tables (f…

…ix #11602)
  • Loading branch information
alexbruy committed Nov 19, 2014
1 parent 4c24666 commit 5e6f4c2faec7728d1520a5715291a503f6e98fbb
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/gui/FixedTableDialog.py
@@ -58,7 +58,7 @@ def __init__(self, param, table):
self.btnRemove.clicked.connect(lambda: self.removeRows())
self.btnRemoveAll.clicked.connect(lambda: self.removeRows(True))

if self.param.fixedNumOfRows:
if not self.param.fixedNumOfRows:
self.btnAdd.setEnabled(False)
self.btnRemove.setEnabled(False)
self.btnRemoveAll.setEnabled(False)
@@ -106,5 +106,5 @@ def removeRows(self, removeAll=False):
self.tblView.setUpdatesEnabled(True)

def addRow(self):
items = [QStandardItem('') for i in xrange(self.tblView.model().columnCount())]
items = [QStandardItem('0') for i in xrange(self.tblView.model().columnCount())]
self.tblView.model().appendRow(items)

0 comments on commit 5e6f4c2

Please sign in to comment.
You can’t perform that action at this time.