Permalink
Browse files

Missing annotation in topic change #14

Also fixed exception catch in code that runs when you click an
underlined action in the label text, so that these errors will be
auto-reported.
  • Loading branch information...
1 parent 41e17a7 commit 014452b761ef72f7f9d99d31da68b40c3c5ad526 @quen committed Sep 30, 2011
Showing with 6 additions and 2 deletions.
  1. +4 −0 src/com/leafdigital/ircui/ChanWindow.java
  2. +2 −2 src/com/leafdigital/ui/LabelImp.java
@@ -1073,6 +1073,7 @@ private void updateTopicBar()
/**
* Dialog used to change the topic.
*/
+ @UIHandler("changetopic")
public class TopicChangeDialog
{
private Dialog d;
@@ -1094,12 +1095,14 @@ private void updateTopicBar()
}
/** Callback: Cancel button. */
+ @UIAction
public void actionCancel()
{
d.close();
}
/** Callback: Text change in edit box. */
+ @UIAction
public void changeValue()
{
// Get encoding
@@ -1113,6 +1116,7 @@ public void changeValue()
* Callback: Change button.
* @throws GeneralException
*/
+ @UIAction
public void actionChange() throws GeneralException
{
doCommand(getPluginContext().getSingle(Commands.class),
@@ -342,9 +342,9 @@ protected void doAction(Node n,int iCharacter,MouseEvent me)
{
ah.action((Element)n,me);
}
- catch(GeneralException ge)
+ catch(Throwable t)
{
- ErrorMsg.report("Error carrying out text view action",ge);
+ ErrorMsg.report("Error carrying out text view action", t);
}
return;
}

0 comments on commit 014452b

Please sign in to comment.