Skip to content

Commit

Permalink
[processing] fix error in MultipleFileInput selector when user press
Browse files Browse the repository at this point in the history
Cancel button
  • Loading branch information
alexbruy committed Mar 4, 2015
1 parent f7b790f commit 30c5bad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/gui/MultipleFileInputDialog.py
Expand Up @@ -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)
Expand Down

0 comments on commit 30c5bad

Please sign in to comment.