Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>2011-07-19 15:34:56 +0400
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>2011-07-20 02:14:21 +0400
commit06ba943409c174191102737f39c471aba73b7fc1 (patch)
treeb0cde66bc7206b2f17937fba91c1b5d3eaf13fdb /main/src/addins/WindowsPlatform
parentb9c0828897ba886f52ecff168dc69a2ce83a525f (diff)
[Windows] Fix a wrong casting.
We should be casting the dialog to the more general FileDialog class, so *any* children can work properly.
Diffstat (limited to 'main/src/addins/WindowsPlatform')
-rw-r--r--main/src/addins/WindowsPlatform/SelectFileDialogHandler.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/WindowsPlatform/SelectFileDialogHandler.cs b/main/src/addins/WindowsPlatform/SelectFileDialogHandler.cs
index dd3f610a07..e2628fa4a4 100644
--- a/main/src/addins/WindowsPlatform/SelectFileDialogHandler.cs
+++ b/main/src/addins/WindowsPlatform/SelectFileDialogHandler.cs
@@ -31,7 +31,7 @@ namespace MonoDevelop.Platform
return false;
if (dlg is FileDialog) {
- var fileDlg = dlg as OpenFileDialog;
+ var fileDlg = dlg as FileDialog;
FilePath[] paths = new FilePath [fileDlg.FileNames.Length];
for (int n=0; n < fileDlg.FileNames.Length; n++)
paths [n] = fileDlg.FileNames [n];