screen markers: fix for confirm dialog appearing behind main UI window

This commit is contained in:
drivfe
2018-05-24 19:41:09 -04:00
committed by Adam
parent e96d46b018
commit 475447c6cb

View File

@@ -276,8 +276,8 @@ class ScreenMarkerPanel extends JPanel
@Override
public void mousePressed(MouseEvent mouseEvent)
{
int confirm = JOptionPane.showConfirmDialog(null,
"Are you sure you want to permanenely delete this screen marker?",
int confirm = JOptionPane.showConfirmDialog(ScreenMarkerPanel.this,
"Are you sure you want to permanently delete this screen marker?",
"Warning", JOptionPane.OK_CANCEL_OPTION);
if (confirm == 0)