Group :: Sistema/Bibliotecas
RPM: qt5-base
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: alt-QTBUG-88599.patch
Download
Download
--- a/src/corelib/io/qfileselector.cpp
+++ b/src/corelib/io/qfileselector.cpp
@@ -277,8 +277,11 @@ QString QFileSelectorPrivate::select(con
{
Q_Q(const QFileSelector);
QFileInfo fi(filePath);
+ QString path(fi.path());
- QString ret = selectionHelper(fi.path().isEmpty() ? QString() : fi.path() + QLatin1Char('/'),
+ if(!path.isEmpty() && !path.endsWith(QLatin1Char('/')))
+ path.append(QLatin1Char('/'));
+ QString ret = selectionHelper(path,
fi.fileName(), q->allSelectors());
if (!ret.isEmpty())