From 46614017c8f9e1a293109fb9d202ed3b634427f5 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Fri, 8 Jun 2012 22:55:11 +0100 Subject: [PATCH] Close the preview dialogue when the model throws an exception --- src/preview/PreviewController.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/preview/PreviewController.cpp b/src/preview/PreviewController.cpp index 227ab45b4..094dbfc20 100644 --- a/src/preview/PreviewController.cpp +++ b/src/preview/PreviewController.cpp @@ -36,6 +36,7 @@ void PreviewController::Update() } catch (PreviewModelException & e) { + Exit(); new ErrorMessage("Error", e.what()); } }