[PATCH] Explicitly show the menubar after mainwindow initialisation.

Sander M. Kleijwegt Sander at MyOwnDomain.nl
Tue Aug 25 02:06:46 PDT 2015


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


More information about the subsurface mailing list