Skip to content

Commit

Permalink
Merge pull request #4 from FantasticFiasco/issue-3
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
FantasticFiasco committed Dec 9, 2015
2 parents 7d0cae6 + 2a4706b commit 28aee3b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This project adheres to [Semantic Versioning](http://semver.org/) and is followi

## [Unreleased]

### Fixed

- Fixed [Issue #3](https://github.com/FantasticFiasco/mvvm-dialogs/issues/3) where exception no longer is thrown when the property changed event for `IModalDialogViewModel.DialogResult` is sent twice

## [1.1.3] - 2015-07-07

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion src/DemoApplicationTest/DemoApplicationTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down
2 changes: 1 addition & 1 deletion src/MvvmDialogs.sln
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Build", ".Build", "{134A50
..\BuildNuGet.bat = ..\BuildNuGet.bat
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub publication", "GitHub publication", "{76759856-59C1-41D8-9024-B899606B1EF6}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Documentation", ".Documentation", "{76759856-59C1-41D8-9024-B899606B1EF6}"
ProjectSection(SolutionItems) = preProject
..\CHANGELOG.md = ..\CHANGELOG.md
..\README.md = ..\README.md
Expand Down
2 changes: 1 addition & 1 deletion src/MvvmDialogs/DialogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public class DialogService : IDialogService
{
PropertyChangedEventHandler handler = (sender, e) =>
{
if (e.PropertyName == DialogResultPropertyName)
if (e.PropertyName == DialogResultPropertyName && dialog.DialogResult != viewModel.DialogResult)
{
dialog.DialogResult = viewModel.DialogResult;
}
Expand Down
3 changes: 3 additions & 0 deletions src/MvvmDialogsTest/MvvmDialogsTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
</None>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down

0 comments on commit 28aee3b

Please sign in to comment.