From 46614017c8f9e1a293109fb9d202ed3b634427f5 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Fri, 8 Jun 2012 22:55:11 +0100 Subject: Close the preview dialogue when the model throws an exception diff --git a/src/preview/PreviewController.cpp b/src/preview/PreviewController.cpp index 227ab45..094dbfc 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()); } } -- cgit v0.9.2-21-gd62e