File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
python/plugins/processing/gui Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -134,9 +134,8 @@ def initWidgets(self):
134
134
self .tblParameters .setHorizontalHeaderItem (
135
135
column , QTableWidgetItem (self .tr ('Load in QGIS' )))
136
136
137
- # Add two empty rows by default
138
- for i in range (2 ):
139
- self .addRow ()
137
+ # Add an empty row to begin
138
+ self .addRow ()
140
139
141
140
self .tblParameters .horizontalHeader ().resizeSections (QHeaderView .ResizeToContents )
142
141
self .tblParameters .verticalHeader ().setSectionResizeMode (QHeaderView .ResizeToContents )
@@ -279,7 +278,7 @@ def addRow(self):
279
278
wrapper .postInitialize (list (wrappers .values ()))
280
279
281
280
def removeRows (self ):
282
- if self .tblParameters .rowCount () > 2 :
281
+ if self .tblParameters .rowCount () > 1 :
283
282
self .wrappers .pop ()
284
283
self .tblParameters .setRowCount (self .tblParameters .rowCount () - 1 )
285
284
You can’t perform that action at this time.
0 commit comments