Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
Fixes #30 Software does not prompt to save changes when exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Hughes committed Jul 28, 2015
1 parent 55cd887 commit 74e01f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dyna Application/DynaApp/ViewModels/MainWindowViewModel.cs
Expand Up @@ -306,6 +306,11 @@ private void FileSaveAsAction()
/// </summary>
private void FileExitAction()
{
if (!PromptToSave())
{
return;
}

Application.Current.MainWindow.Close();
}

Expand Down

0 comments on commit 74e01f0

Please sign in to comment.