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 c7234ce commit 60b5d4245b449e64d74cf1cce9ef7b24b42985b9
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 60b5d42

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