From 647331c00cf9175ef721843d61ab6715a85f94f2 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Tue, 20 Aug 2013 19:38:50 +0000 Subject: [PATCH] added doc strings --- openlp/core/lib/filedialog.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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: