diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-06-05 14:55:05 +0400 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-06-05 14:55:05 +0400 |
commit | e096eb11e39b56ad9fe1f4fd0069c4b15f1128d9 (patch) | |
tree | 5a8831ed0dee923cae601c5a96f3b54432a82339 /main/src/addins/WindowsPlatform/WindowsAPICodePack | |
parent | 8288845fa046ee93cbd412405b37a830a3006e63 (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.cs | 4 |
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;
|