From: H.G.Muller Date: Wed, 20 Jan 2016 19:31:34 +0000 (+0100) Subject: Fix Error popup in Tournament Options X-Git-Url: http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=xboard.git;a=commitdiff_plain;h=3e0d91cb49933690505a7c04c624e76412e44a0e Fix Error popup in Tournament Options Since Tournament Options has been assigned its own DialogClass (MasterDlg) instead of being one of the TransientDlg, the Error popup should really test if MasterDlg is already up, to know if its parent window is th main window or not. --- diff --git a/dialogs.c b/dialogs.c index a5e42c52..4b52d260 100644 --- a/dialogs.c +++ b/dialogs.c @@ -2264,8 +2264,8 @@ ErrorPopUp (char *title, char *label, int modal) { errorUp = True; errorOptions[1].name = label; - if(dialogError = shellUp[TransientDlg]) - GenericPopUp(errorOptions+1, title, FatalDlg, TransientDlg, MODAL, 0); // pop up as daughter of the transient dialog + if(dialogError = shellUp[MasterDlg]) + GenericPopUp(errorOptions+1, title, FatalDlg, MasterDlg, MODAL, 0); // pop up as daughter of the transient dialog else GenericPopUp(errorOptions+modal, title, modal ? FatalDlg: ErrorDlg, BoardWindow, modal, 0); // kludge: option start address indicates modality }