mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-22 03:55:33 +00:00
Fixed: #1670 Parent component/window of dialogs not properly set
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.jpexs.decompiler.flash.gui.hexview;
|
||||
|
||||
import com.jpexs.decompiler.flash.gui.AppDialog;
|
||||
import com.jpexs.decompiler.flash.gui.Main;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
@@ -164,7 +165,7 @@ public class HexView extends JTable {
|
||||
gotoAddressMenuItem.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
Long value = new GotoAddressDialog().showDialog();
|
||||
Long value = new GotoAddressDialog(Main.getDefaultDialogsOwner()).showDialog();
|
||||
if (value != null) {
|
||||
selectByte(value);
|
||||
}
|
||||
@@ -253,7 +254,7 @@ public class HexView extends JTable {
|
||||
@Override
|
||||
public void keyReleased(KeyEvent e) {
|
||||
if (e.isControlDown() && e.getKeyCode() == 'G') {
|
||||
Long value = new GotoAddressDialog().showDialog();
|
||||
Long value = new GotoAddressDialog(Main.getDefaultDialogsOwner()).showDialog();
|
||||
if (value != null) {
|
||||
selectByte(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user