]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_toolb.cpp
Changes that were in aclocal.m4 but not here
[wxWidgets.git] / contrib / src / xrc / xh_toolb.cpp
index 4e472a3dc9a1e8afe7ce9325312b5b7a33171885..40fc9246df9891200836849962e6571156d72376 100644 (file)
@@ -148,8 +148,7 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
 
         toolbar->Realize();
 
-        // FIXME: how can I create a toolbar without immediately setting it to the frame?
-        if (m_parentAsWindow)
+        if (m_parentAsWindow && !GetBool(wxT("dontattachtoframe")))
         {
             wxFrame *parentFrame = wxDynamicCast(m_parent, wxFrame);
             if (parentFrame)