[PATCH] Explicitly show the menubar after mainwindow initialisation.

Sander M. Kleijwegt Sander at MyOwnDomain.nl
Tue Aug 25 18:44:25 PDT 2015


And the patch....
________________________________________
> From: subsurface [subsurface-bounces at subsurface-divelog.org] on behalf of Sander M. Kleijwegt [Sander at MyOwnDomain.nl]
> Sent: Tuesday, August 25, 2015 11:06
> To: Subsurface Mailing List
> Subject: [PATCH] Explicitly show the menubar after mainwindow initialisation.
>
> Hi All,
>
> I have stumbled into a problem on my ubuntu 14.04 machine with XFCE. I am _not_ using the global menu bar that ubuntu has standard nowadays but instead I am using 'classical' menubars inside each application. However, with subsurface, I found that the menubar is nowhere to be found, whereas other Qt apps do show menubars properly. I am not very familiar with Qt but I have discovered that at the end of the MainWindow initialisation ui.menubar->isVisible() returns false. A simple ui.menubar->show() fixes my problem and gives me a visible menubar.
> As said, I have no idea if this is the right way(tm) to do things, so any comments and/or help would be greatly appreciated.
>
> I have also found ticket #833 which seems to describe the same problem I encountered. That ticket was set to 'workasdesigned' with a note that it is a Qt bug, but since I can circumvent it with my patch it seems the problem is indeed with subsurface.
>
> kind regards,
> Sander Kleijwegt
> _______________________________________________
> subsurface mailing list
> subsurface at subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150826/420d2c76/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Explicitly-show-the-menubar-after-mainwindow-initial.patch
Type: application/patch
Size: 691 bytes
Desc: 0001-Explicitly-show-the-menubar-after-mainwindow-initial.patch
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150826/420d2c76/attachment.bin>


More information about the subsurface mailing list