summaryrefslogtreecommitdiffstats
path: root/pokemodr/TimeUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/TimeUI.cpp')
-rw-r--r--pokemodr/TimeUI.cpp15
1 files changed, 12 insertions, 3 deletions
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 <QMetaObject>
+#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();
+ }
}