Skip to content

Commit 30c5bad

Browse files
committed
[processing] fix error in MultipleFileInput selector when user press
Cancel button
1 parent f7b790f commit 30c5bad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/plugins/processing/gui/MultipleFileInputDialog.py

+3
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def addFile(self):
9191
files = QFileDialog.getOpenFileNames(self,
9292
self.tr('Select file(s)'), path, self.tr('All files (*.*)'))
9393

94+
if len(files) == 0:
95+
return
96+
9497
model = self.lstLayers.model()
9598
for filePath in files:
9699
item = QStandardItem(filePath)

0 commit comments

Comments
 (0)