]> git.saurik.com Git - wxWidgets.git/commit
Fix crash when accessing clipboard before entering the main loop.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Mar 2010 23:45:22 +0000 (23:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Mar 2010 23:45:22 +0000 (23:45 +0000)
commit439c7eae9b77cc6c0414ccae52e688d626c86851
tree6da44480e961da5d9b934c3608c75237146e1bcb
parent06bb8d923df9ce02e522c661a11ff685466067a6
Fix crash when accessing clipboard before entering the main loop.

Check that we have an event loop running before yielding to it.

Notice that we really do need an event loop in wxClipboardSync as events must
be dispatched for the clipboard code to work so while not using the event loop
if it doesn't exist would have fixed a crash as well, it wouldn't allow to use
the clipboard in e.g. wxApp-derived class OnInit().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/clipbrd.cpp