Skip to content
Permalink
Browse files

[processing] fix error in MultipleFileInput selector when user press

Cancel button
  • Loading branch information
alexbruy committed Mar 4, 2015
1 parent f7b790f commit 30c5bad91d0d789546f15dd34ff4d53ffcd59565
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/gui/MultipleFileInputDialog.py
@@ -91,6 +91,9 @@ def addFile(self):
files = QFileDialog.getOpenFileNames(self,
self.tr('Select file(s)'), path, self.tr('All files (*.*)'))

if len(files) == 0:
return

model = self.lstLayers.model()
for filePath in files:
item = QStandardItem(filePath)

0 comments on commit 30c5bad

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