build fix for wxUSE_CONSOLE_EVENTLOOP==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -75,10 +75,11 @@ public:
|
|||||||
|
|
||||||
~wxClipboardSync()
|
~wxClipboardSync()
|
||||||
{
|
{
|
||||||
|
#if wxUSE_CONSOLE_EVENTLOOP
|
||||||
// ensure that there is a running event loop: this might not be the
|
// ensure that there is a running event loop: this might not be the
|
||||||
// case if we're called before the main event loop startup
|
// case if we're called before the main event loop startup
|
||||||
wxEventLoopGuarantor ensureEventLoop;
|
wxEventLoopGuarantor ensureEventLoop;
|
||||||
|
#endif
|
||||||
while (ms_clipboard)
|
while (ms_clipboard)
|
||||||
wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_CLIPBOARD);
|
wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_CLIPBOARD);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user