Skip to content

Commit 60b5d42

Browse files
committedMar 4, 2015
[processing] fix error in MultipleFileInput selector when user press
Cancel button
1 parent c7234ce commit 60b5d42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

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

Lines changed: 3 additions & 0 deletions
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)
Please sign in to comment.