[PATCH] Explicitly show the menubar after mainwindow initialisation.

Sander M. Kleijwegt Sander at MyOwnDomain.nl
Tue Aug 25 12:15:37 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 --------------
A non-text attachment was scrubbed...
Name: 0001-Explicitly-show-the-menubar-after-mainwindow-initial.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150825/76d63c71/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6210 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150825/76d63c71/attachment-0001.bin>


More information about the subsurface mailing list