diff options
author | Carlos Alberto Cortez <calberto.cortez@gmail.com> | 2011-10-06 22:48:17 +0400 |
---|---|---|
committer | Carlos Alberto Cortez <calberto.cortez@gmail.com> | 2011-10-06 22:55:01 +0400 |
commit | bf7471b64a34b8782bf445f5928b00c6211725fa (patch) | |
tree | 5fa7f308ce4ab849cba7eecdb807280e5116749e /main/src/addins/WindowsPlatform | |
parent | 0f1043f0f711ed9d05c2479d6aea3eab47560ba6 (diff) |
[WindowsPlatform] Fix Bug 1223 - Use the native classic open/save dialogs.
The new dialogs (WPF based, available starting with Windows Vista)
don't seem to handle children, so we can't use them to extend the
basic functionality. Instead we force the system to use the classic
ones, which work just fine.
Diffstat (limited to 'main/src/addins/WindowsPlatform')
-rw-r--r-- | main/src/addins/WindowsPlatform/Dialogs/SelectFileDialogHandler.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/addins/WindowsPlatform/Dialogs/SelectFileDialogHandler.cs b/main/src/addins/WindowsPlatform/Dialogs/SelectFileDialogHandler.cs index 899eafa1ce..ccefe0551b 100644 --- a/main/src/addins/WindowsPlatform/Dialogs/SelectFileDialogHandler.cs +++ b/main/src/addins/WindowsPlatform/Dialogs/SelectFileDialogHandler.cs @@ -110,6 +110,9 @@ namespace MonoDevelop.Platform // FileDialog.FileName expects anything but a directory name.
if (!Directory.Exists (data.InitialFileName))
dialog.FileName = data.InitialFileName;
+
+ // Use the classic dialogs, as the new ones (WPF based) can't handle child controls.
+ dialog.AutoUpgradeEnabled = false;
OpenFileDialog openDialog = dialog as OpenFileDialog;
if (openDialog != null)
|