File tree 2 files changed +12
-6
lines changed
python/plugins/processing
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -544,9 +544,18 @@ def addRow(self):
544
544
wrapper .postInitialize (list (wrappers .values ()))
545
545
546
546
def removeRows (self ):
547
- if self .tblParameters .rowCount () > 2 :
548
- self .wrappers .pop ()
549
- self .tblParameters .setRowCount (self .tblParameters .rowCount () - 1 )
547
+ rows = set ()
548
+ for index in self .tblParameters .selectedIndexes ():
549
+ if index .row () == 0 :
550
+ continue
551
+ rows .add (index .row ())
552
+
553
+ for row in sorted (rows , reverse = True ):
554
+ if self .tblParameters .rowCount () <= 2 :
555
+ break
556
+
557
+ del self .wrappers [row - 1 ]
558
+ self .tblParameters .removeRow (row )
550
559
551
560
def toggleAdvancedMode (self , checked ):
552
561
for column , param in enumerate (self .alg .parameterDefinitions ()):
Original file line number Diff line number Diff line change 89
89
<attribute name =" horizontalHeaderStretchLastSection" >
90
90
<bool >true</bool >
91
91
</attribute >
92
- <attribute name =" verticalHeaderVisible" >
93
- <bool >false</bool >
94
- </attribute >
95
92
</widget >
96
93
</item >
97
94
<item row =" 0" column =" 3" >
You can’t perform that action at this time.
0 commit comments