@@ -407,16 +407,15 @@ protected void doDiffWork() {
407407
408408 table .addMouseListener (new MouseAdapter () {
409409 public void mousePressed (MouseEvent e ) {
410+ var entry = ctm .getEntry (table .convertRowIndexToModel (table .getSelectedRow ()));
411+
410412 if (e .getClickCount () == 2 && table .getSelectedRow () != -1 ) {
411- var entry = ctm .getEntry (table .getSelectedRow ());
412- //cvs.goTo(new ProgramLocation(program, entry.primaryAddress), true);
413413 PluginEvent ev = new ProgramLocationPluginEvent (null , new ProgramLocation (program , entry .primaryAddress ), program );
414414 tool .firePluginEvent (ev );
415415
416416 if (secondary .prog != null && secondary .df != null ) {
417417 Address secAddress = secondary .prog .getAddressFactory ().getDefaultAddressSpace ()
418418 .getAddress (entry .secondaryAddress );
419- //secondary.cvs.goTo(new ProgramLocation(secondary.prog, secAddress), true);
420419 PluginEvent secev = new ProgramLocationPluginEvent (null , new ProgramLocation (secondary .prog , secAddress ), secondary .prog );
421420
422421 for (var consumer : secondary .df .getConsumers ()) {
@@ -430,7 +429,6 @@ public void mousePressed(MouseEvent e) {
430429 String pname = program .getDomainFile ().getName ().toString ();
431430 String pname2 = secondary .prog .getDomainFile ().getName ().toString ();
432431
433- var entry = ctm .getEntry (table .getSelectedRow ());
434432 try {
435433 Function function = program .getListing ().getFunctionAt (entry .primaryAddress );
436434 Address secAddress = addrSpace2 .getAddress (entry .secondaryAddress );
0 commit comments