summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Meyer <cmeyer1969@gmail.com>2011-12-16 16:14:43 -0800
committerQt by Nokia <qt-info@nokia.com>2011-12-19 09:55:24 +0100
commite75e4421cdcaba1e0c2920251b114d0318155d3c (patch)
tree2cfced97b3082c1c6d6830462b05cc67553d3c60 /src
parentb13f630c8188b7b7571a5df001a395b9e6790a28 (diff)
Enable option to see filename extension in Mac save dialog
Many Mac OS users expect to have the option to see the file extension of the file being saved in the save dialog. This patch enables that option. Change-Id: I7713bcef16b6f43135b382c7107f306009c7a0a1 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm b/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm
index e7f6b8b54f..6ff0e94dc4 100644
--- a/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm
+++ b/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm
@@ -138,6 +138,7 @@ typedef QSharedPointer<QFileDialogOptions> SharedPointerFileDialogOptions;
mSavePanel = mOpenPanel;
} else {
mSavePanel = [NSSavePanel savePanel];
+ [mSavePanel setCanSelectHiddenExtension:YES];
mOpenPanel = 0;
}