diff --git a/openlp/core/lib/filedialog.py b/openlp/core/lib/filedialog.py index 5e0c7539b..d1a5bd69a 100644 --- a/openlp/core/lib/filedialog.py +++ b/openlp/core/lib/filedialog.py @@ -28,7 +28,8 @@ ############################################################################### """ -Provide a work around for a bug in QFileDialog +Provide a work around for a bug in QFileDialog + """ import os import urllib @@ -38,8 +39,15 @@ from PyQt4 import QtCore, QtGui from openlp.core.lib.ui import UiStrings class FileDialog(QtGui.QFileDialog): + """ + Subclass QFileDialog to work round a bug + """ @staticmethod def getOpenFileNames(parent, title, path, filters): + """ + Reimplement getOpenFileNames to fix the way it returns some file + names that url encoded when selecting multiple files/ + """ files = QtGui.QFileDialog.getOpenFileNames(parent, title, path, filters) file_list = QtCore.QStringList() for file in files: