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:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2014-06-05 14:55:05 +0400
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2014-06-05 14:55:05 +0400
commite096eb11e39b56ad9fe1f4fd0069c4b15f1128d9 (patch)
tree5a8831ed0dee923cae601c5a96f3b54432a82339 /main/src/addins/WindowsPlatform/WindowsAPICodePack
parent8288845fa046ee93cbd412405b37a830a3006e63 (diff)
Fixed Bug 20288 - 'System.InvalidOperationException' shown on selecting invalid file for 'Add existing Projects'
Diffstat (limited to 'main/src/addins/WindowsPlatform/WindowsAPICodePack')
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs
index 19b4230b04..89ad76e623 100644
--- a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs
@@ -349,9 +349,7 @@ namespace Microsoft.WindowsAPICodePack.Dialogs
///
private void SyncFileTypeComboToDefaultExtension(IFileDialog dialog)
{
- // make sure it's a Save dialog and that there is a default
- // extension to sync to.
- if (!(this is CommonSaveFileDialog) || DefaultExtension == null ||
+ if (DefaultExtension == null ||
filters.Count <= 0)
{
return;