From kde-core-devel Fri Mar 23 20:11:15 2001 From: David Faure Date: Fri, 23 Mar 2001 20:11:15 +0000 To: kde-core-devel Subject: Re: [Fwd: Bug#22907: No way to recover hidden menubar] X-MARC-Message: https://marc.info/?l=kde-core-devel&m=98537847900413 On Friday 23 March 2001 16:39, Stephan Kulow wrote: > Hi! > > Is this still the case? I thought with David's patch it should > work? Found what's happening : 8701 konqueror: Pluggin action showmenubar --> calling plugAccel. w=[KPopupMenu pointer (0x82de908) to widget settings, geometry=640x409+320+307] 8701 konqueror: WARNING: Toplevel widget isn't a KMainWindow [KPopupMenu pointer (0x82de908) to widget settings, geometry=640x409+320+307] The action is being plugged into a popup-menu, which doesn't have the mainwindow as toplevel widget (yet?). It works for F5 because it's also in the toolbar, so the mainwindow is found from there. I believe this is due to the XMLGUI building..... Hmm, no the popup has the mainwindow as parent, so that's alright. Then it's topLevelWidget() that doesn't do what we expect (it stops at the popup menu because it has a WType_TopLevel flag). Ok, fixed. -- David FAURE, david@mandrakesoft.com, faure@kde.org http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/ KDE, Making The Future of Computing Available Today