]> git.saurik.com Git - wxWidgets.git/commitdiff
build fix for wxUSE_CONSOLE_EVENTLOOP==0
authorPaul Cornett <paulcor@bullseye.com>
Mon, 3 Jan 2011 17:15:37 +0000 (17:15 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 3 Jan 2011 17:15:37 +0000 (17:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/clipbrd.cpp

index 7fe76b4e66b4b50980c4aeb45668ac6b4b0ec4ea..924f7c88c02fe18f89762dbba35717d56ac39c3d 100644 (file)
@@ -75,10 +75,11 @@ public:
 
     ~wxClipboardSync()
     {
+#if wxUSE_CONSOLE_EVENTLOOP
         // ensure that there is a running event loop: this might not be the
         // case if we're called before the main event loop startup
         wxEventLoopGuarantor ensureEventLoop;
-
+#endif
         while (ms_clipboard)
             wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_CLIPBOARD);
     }