diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-31 18:33:10 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-31 18:33:10 +0000 |
| commit | 14a52db47b4268b03c4b37d84df48cdb3128f09c (patch) | |
| tree | 4d703295f64905ed6df097ecc870a0ef92c5ffe3 /pokemodr/TimeUI.cpp | |
| parent | ebbb362f9e70dc67354706fc2cbfc77d8dfcba4c (diff) | |
| download | sigen-14a52db47b4268b03c4b37d84df48cdb3128f09c.tar.gz sigen-14a52db47b4268b03c4b37d84df48cdb3128f09c.tar.xz sigen-14a52db47b4268b03c4b37d84df48cdb3128f09c.zip | |
[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
Diffstat (limited to 'pokemodr/TimeUI.cpp')
| -rw-r--r-- | pokemodr/TimeUI.cpp | 15 |
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(); + } } |
