GP-723 - Fixed bad parent of confirmation dialog

This commit is contained in:
dragonmacher 2021-02-25 14:09:07 -05:00
parent 98d0cd9034
commit 04939dab09

View file

@ -106,7 +106,7 @@ public class TaskMonitorComponent extends JPanel implements TaskMonitor {
shouldCancelRunnable = () -> {
int currentTaskID = taskID.get();
boolean userSaysYes = OptionDialog.showYesNoDialog(TaskMonitorComponent.this, "Cancel?",
boolean userSaysYes = OptionDialog.showYesNoDialog(null, "Cancel?",
"Do you really want to cancel " + getTaskName() + "?") == OptionDialog.OPTION_ONE;
if (userSaysYes && currentTaskID == taskID.get()) {