Просмотр исходного кода

Link click events now pass a window

Fixes issue 3898

Change-Id: I4293c677bc89e4e8ed28ab6c24ae962d9d37bf71
Reviewed-on: http://gerrit.dmdirc.com/1000
Automatic-Compile: Gregory Holmes <greg@dmdirc.com>
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
tags/0.6.4
Chris Smith 14 лет назад
Родитель
Сommit
e5a4337c38
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      src/com/dmdirc/addons/ui_swing/components/frames/TextFrame.java

+ 3
- 3
src/com/dmdirc/addons/ui_swing/components/frames/TextFrame.java Просмотреть файл

@@ -907,20 +907,20 @@ public abstract class TextFrame extends JInternalFrame implements Window,
907 907
                     switch (clickType) {
908 908
                         case CHANNEL:
909 909
                             if (ActionManager.processEvent(CoreActionType.
910
-                                    LINK_CHANNEL_CLICKED, null, attribute)) {
910
+                                    LINK_CHANNEL_CLICKED, null, this, attribute)) {
911 911
                                 frameParent.getServer().join(
912 912
                                         new ChannelJoinRequest(attribute));
913 913
                             }
914 914
                             break;
915 915
                         case HYPERLINK:
916 916
                             if (ActionManager.processEvent(CoreActionType.
917
-                                    LINK_URL_CLICKED, null, attribute)) {
917
+                                    LINK_URL_CLICKED, null, this, attribute)) {
918 918
                                 URLHandler.getURLHander().launchApp(attribute);
919 919
                             }
920 920
                             break;
921 921
                         case NICKNAME:
922 922
                             if (ActionManager.processEvent(CoreActionType.
923
-                                    LINK_NICKNAME_CLICKED, null, attribute)) {
923
+                                    LINK_NICKNAME_CLICKED, null, this, attribute)) {
924 924
                                 getContainer().getServer().addQuery(attribute).
925 925
                                         activateFrame();
926 926
                             }

Загрузка…
Отмена
Сохранить