]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid unused variable warning in wxPropertyGrid code in non-wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jul 2012 13:27:40 +0000 (13:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jul 2012 13:27:40 +0000 (13:27 +0000)
Put the variable only used in wxGTK inside "#ifdef __WXGTK__".

This fixes the warning but the real fix would be to get rid of this variable
completely and just fix whatever problem in wxWindow::Navigate() this was
supposed to work around.

See #14459.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index 42395f47a217869f31c8e09c3a879532e625e56b..f9f94ebfcce72327435b8f65c7f7cd28def9893a 100644 (file)
@@ -5553,12 +5553,14 @@ void wxPropertyGrid::HandleKeyEvent( wxKeyEvent &event, bool fromChild )
 
     if ( keycode == WXK_TAB )
     {
+#if defined(__WXGTK__)
         wxWindow* mainControl;
 
         if ( HasInternalFlag(wxPG_FL_IN_MANAGER) )
             mainControl = GetParent();
         else
             mainControl = this;
+#endif
 
         if ( !event.ShiftDown() )
         {