From 3e0d91cb49933690505a7c04c624e76412e44a0e Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 20 Jan 2016 20:31:34 +0100 Subject: [PATCH] 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. --- dialogs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dialogs.c b/dialogs.c index a5e42c5..4b52d26 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 } -- 1.7.0.4