getFileNames corrupts file names that use "special chars"
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenLP | Status tracked in Trunk | |||||
2.0 |
Fix Released
|
Medium
|
Phill | |||
Trunk |
Fix Released
|
Medium
|
Phill |
Bug Description
This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home).
Here's the issue:
Use QFileDialog.
However, use QFileDialog.
When we come to open the file, Python cannot find the file "%23123.xml" because it does not exist.
This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it!
Reported here: http://
and here: http://
Related branches
- Tim Bentley: Approve
- Raoul Snyman: Approve
- Andreas Preikschat: Pending requested
- Phill: Pending requested
-
Diff: 183 lines (+76/-8)7 files modifiedopenlp/core/lib/__init__.py (+1/-0)
openlp/core/lib/filedialog.py (+63/-0)
openlp/core/lib/mediamanageritem.py (+2/-2)
openlp/core/lib/ui.py (+4/-0)
openlp/core/ui/thememanager.py (+2/-2)
openlp/plugins/songs/forms/editsongform.py (+2/-2)
openlp/plugins/songs/forms/songimportform.py (+2/-2)
- Tim Bentley: Approve
- Raoul Snyman: Approve
-
Diff: 287 lines (+151/-10)9 files modifiedopenlp/core/common/uistrings.py (+2/-0)
openlp/core/lib/__init__.py (+1/-1)
openlp/core/lib/filedialog.py (+66/-0)
openlp/core/lib/mediamanageritem.py (+2/-2)
openlp/core/ui/thememanager.py (+2/-2)
openlp/plugins/songs/forms/editsongform.py (+2/-2)
openlp/plugins/songs/forms/songimportform.py (+2/-2)
tests/functional/openlp_core_lib/test_file_dialog.py (+73/-0)
tests/functional/openlp_core_lib/test_htmlbuilder.py (+1/-1)
Changed in openlp: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: support-system |
See: http:// pastebin. com/QcmkNcSk for example code