Fix for OS X QFileDialog showing bundle as directory
Also check if the selectedFile is a bundle to correctly set currentDir. Patch for Qt 4.8 has been submitted Task-number: QTBUG-31562 Change-Id: I72b0e8484b3c3a610932c03cd7fdab4ddee70277 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
This commit is contained in:
parent
c492b2bffa
commit
570cf51919
@ -168,7 +168,7 @@ typedef QSharedPointer<QFileDialogOptions> SharedPointerFileDialogOptions;
|
|||||||
mSelectedNameFilter = new QStringList([self findStrippedFilterWithVisualFilterName:selectedVisualNameFilter]);
|
mSelectedNameFilter = new QStringList([self findStrippedFilterWithVisualFilterName:selectedVisualNameFilter]);
|
||||||
|
|
||||||
QFileInfo sel(selectFile);
|
QFileInfo sel(selectFile);
|
||||||
if (sel.isDir()){
|
if (sel.isDir() && !sel.isBundle()){
|
||||||
mCurrentDir = [QCFString::toNSString(sel.absoluteFilePath()) retain];
|
mCurrentDir = [QCFString::toNSString(sel.absoluteFilePath()) retain];
|
||||||
mCurrentSelection = new QString;
|
mCurrentSelection = new QString;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user