From 14a52db47b4268b03c4b37d84df48cdb3128f09c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 31 Jan 2008 18:33:10 +0000 Subject: [ADD] GenericListItem.{h, cpp} [FIX] BadgeUI bugs (some still exist) [FIX] Other UI bugs fixed git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@51 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/TimeUI.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'pokemodr/TimeUI.cpp') diff --git a/pokemodr/TimeUI.cpp b/pokemodr/TimeUI.cpp index 43ee3427..68e9d628 100644 --- a/pokemodr/TimeUI.cpp +++ b/pokemodr/TimeUI.cpp @@ -21,6 +21,7 @@ ///////////////////////////////////////////////////////////////////////////// #include +#include "../general/BugCatcher.h" #include "../general/Exception.h" #include "TimeUI.h" @@ -66,7 +67,15 @@ void TimeUI::on_varName_textChanged(const QString& n) void TimeUI::on_varTime_timeChanged(const QTime& t) { - time_mod->setStartHour(t.hour()); - time_mod->setStartMinute(t.minute()); - emit(setChanged(true)); + try + { + time_mod->setStartHour(t.hour()); + time_mod->setStartMinute(t.minute()); + emit(setChanged(true)); + } + catch (BoundsException& e) + { + BugCatcher::report(e); + setGui(); + } } -- cgit