From 1706aaca6971f664d4d3801792954f0e3c06f741 Mon Sep 17 00:00:00 2001 From: "james.k.crook@gmail.com" Date: Sat, 24 Aug 2013 16:31:21 +0000 Subject: [PATCH] Bug 646: PluginRegistrationDialog now centred on screen rather than on (not-yet-existent) parent --- src/effects/VST/VSTEffect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/effects/VST/VSTEffect.cpp b/src/effects/VST/VSTEffect.cpp index b30b74373..de9d8df77 100644 --- a/src/effects/VST/VSTEffect.cpp +++ b/src/effects/VST/VSTEffect.cpp @@ -221,7 +221,8 @@ void PluginRegistrationDialog::PopulateOrExchange(ShuttleGui &S) Layout(); Fit(); SetSizeHints(GetSize()); - Center(); + // Parent window is usually not there yet, so centre on screen rather than on parent. + CenterOnScreen(); }