forked from openlp/openlp
Fixed bug #1022184: Presentation module crashes when importing powerpoint files - Windows XP is unable to handle the path being returned by QFileDialog.
bzr-revno: 2065 Fixes: https://launchpad.net/bugs/1022184
This commit is contained in:
commit
f6f3717499
@ -674,6 +674,7 @@ class AdvancedTab(SettingsTab):
|
||||
options = QtGui.QFileDialog.ShowDirsOnly))
|
||||
# Set the new data path.
|
||||
if new_data_path:
|
||||
new_data_path = os.path.normpath(new_data_path)
|
||||
if self.currentDataPath.lower() == new_data_path.lower():
|
||||
self.onDataDirectoryCancelButtonClicked()
|
||||
return
|
||||
|
@ -136,7 +136,7 @@ class AppLocation(object):
|
||||
else:
|
||||
path = AppLocation.get_directory(AppLocation.DataDir)
|
||||
check_directory_exists(path)
|
||||
return path
|
||||
return os.path.normpath(path)
|
||||
|
||||
@staticmethod
|
||||
def get_section_data_path(section):
|
||||
|
Loading…
Reference in New Issue
Block a user