Hi Joe, all,

running a fresh built wsjtx branch (r6858) on Ubuntu 14.04 with Gnome
Classic window manager, the main window menu is not visible.

Really, it is a known issue, albeit a quite obscure one I believe:

https://bugs.launchpad.net/ubuntu/+source/appmenu-qt5/+bug/1307619

As suggested in above bug report, just setting

export QT_QPA_PLATFORMTHEME=

one can have back the menu (the default value is appmenu-qt5).

Alternatively, in order to have my local installation fixed, I
developed the following small patch:

Index: mainwindow.cpp
===================================================================
--- mainwindow.cpp    (revision 6858)
+++ mainwindow.cpp    (working copy)
@@ -842,6 +842,9 @@
   minuteTimer.setSingleShot (true);
   minuteTimer.start (ms_to_next_minute ());

+  // https://bugs.launchpad.net/ubuntu/+source/appmenu-qt5/+bug/1307619
+  menuBar()->setNativeMenuBar(false);
+
   // this must be the last statement of constructor
   if (!m_valid) throw std::runtime_error {"Fatal initialization exception"};
 }

However, with this change, the menu is always shown, irrespective of
QT_QPA_PLATFORMTHEME value, even under the default desktop, Gnome
Unity.

   *am*

-- 
Andrea Montefusco IW0HDV
------------------------------------------
As my old boss, an Apollo veteran, would often remind us “It’s good to
be smart, but it’s better to be lucky.”
   Wayne Hale, Space Shuttle Flight Director

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to