From: Panagiotis Kanavos Date: Mon, 23 Apr 2012 18:27:18 +0000 (+0300) Subject: Modified Exit code to call App Shutdown in every case X-Git-Url: https://code.grnet.gr/git/pithos-ms-client/commitdiff_plain/8dcf435dc1d3ade30585e5ae9aa4b41d6925d8f6 Modified Exit code to call App Shutdown in every case --- diff --git a/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs b/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs index d9109be..d7f06e1 100644 --- a/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs +++ b/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs @@ -668,12 +668,13 @@ namespace Pithos.Client.WPF { var view = GetView() as Window; if (view != null) view.Close(); - else - Application.Current.Shutdown(); } catch (Exception exc) { - Log.Info("Exception while exiting", exc); + Log.Info("Exception while exiting", exc); + } + finally + { Application.Current.Shutdown(); } }