From 8dcf435dc1d3ade30585e5ae9aa4b41d6925d8f6 Mon Sep 17 00:00:00 2001 From: Panagiotis Kanavos Date: Mon, 23 Apr 2012 21:27:18 +0300 Subject: [PATCH] Modified Exit code to call App Shutdown in every case --- trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); } } -- 1.7.10.4