opengl_gal: fix a strange but already encountered issue on Ubuntu/Unity when switching to GAL: the dialog which test the opengl version was never raised, and the Pcb editor frame partially no more responding to menu events.
Also fix a bug: this test dialog was never destroyed.
This commit is contained in:
parent
af1f3c9b49
commit
1c9115ee91
|
@ -959,11 +959,11 @@ unsigned int OPENGL_GAL::getNewGroupNumber()
|
||||||
|
|
||||||
bool OPENGL_GAL::runTest()
|
bool OPENGL_GAL::runTest()
|
||||||
{
|
{
|
||||||
wxDialog* dialog = new wxDialog( GetParent(), -1, wxT( "opengl test" ),
|
wxDialog dlgtest( GetParent(), -1, wxT( "opengl test" ), wxPoint( 50, 50 ), wxSize( 50, 50 ) );
|
||||||
wxPoint( 50, 50 ), wxSize( 50, 50 ) );
|
OPENGL_TEST* test = new OPENGL_TEST( &dlgtest, this );
|
||||||
OPENGL_TEST* test = new OPENGL_TEST( dialog, this );
|
|
||||||
|
|
||||||
dialog->ShowModal();
|
dlgtest.Raise(); // on Linux, on some windows managers (Unity for instance) this is needed to actually show the dialog
|
||||||
|
dlgtest.ShowModal();
|
||||||
bool result = test->IsOk();
|
bool result = test->IsOk();
|
||||||
|
|
||||||
if( !result )
|
if( !result )
|
||||||
|
|
Loading…
Reference in New Issue