DIALOG_SHIM: do not raise invisible windows on wxMSW
Raise() invokes SetFocus() on Windows OS, leading to an API error (check wxWindowMSW::SetFocus() in wxWidgets/src/msw/window.cpp as of wxWidgets 3.0.2). In certain cases it leads to a crash.
This commit is contained in:
parent
e0e4e5f1be
commit
98c99ff129
|
@ -155,7 +155,9 @@ bool DIALOG_SHIM::Show( bool show )
|
|||
// If showing, use previous position and size.
|
||||
if( show )
|
||||
{
|
||||
#ifndef __WINDOWS__
|
||||
wxDialog::Raise(); // Needed on OS X and some other window managers (i.e. Unity)
|
||||
#endif
|
||||
ret = wxDialog::Show( show );
|
||||
|
||||
// classname is key, returns a zeroed out default EDA_RECT if none existed before.
|
||||
|
|
Loading…
Reference in New Issue