From 38b2e429fa75335298e3675ec28d995acd521dedbcd851f9a03dc376f426d98a Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 8 Mar 2016 13:56:26 +0000 Subject: [PATCH] - Adding: preferences_context_menu.patch Without this it's possible to disable the menu bar with no way to bring it back. OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/qterminal?expand=0&rev=2 --- preferences_context_menu.patch | 13 +++++++++++++ qterminal.changes | 7 +++++++ qterminal.spec | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 preferences_context_menu.patch diff --git a/preferences_context_menu.patch b/preferences_context_menu.patch new file mode 100644 index 0000000..c6b3866 --- /dev/null +++ b/preferences_context_menu.patch @@ -0,0 +1,13 @@ +diff -urEbwB qterminal-0.6.0/src/termwidget.cpp qterminal-0.6.0.new/src/termwidget.cpp +--- qterminal-0.6.0/src/termwidget.cpp 2014-10-22 10:13:14.000000000 +0200 ++++ qterminal-0.6.0.new/src/termwidget.cpp 2016-03-08 14:50:34.453218129 +0100 +@@ -106,6 +106,9 @@ + menu.addAction(Properties::Instance()->actions[SPLIT_VERTICAL]); + #warning TODO/FIXME: disable the action when there is only one terminal + menu.addAction(Properties::Instance()->actions[SUB_COLLAPSE]); ++ menu.addSeparator(); ++ menu.addAction(Properties::Instance()->actions[TOGGLE_MENU]); ++ menu.addAction(Properties::Instance()->actions[PREFERENCES]); + menu.exec(mapToGlobal(pos)); + } + diff --git a/qterminal.changes b/qterminal.changes index ab1772c..7f79144 100644 --- a/qterminal.changes +++ b/qterminal.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 8 13:54:46 UTC 2016 - mvetter@suse.com + +- Adding: preferences_context_menu.patch + Without this it's possible to disable the menu bar with + no way to bring it back. + ------------------------------------------------------------------- Sat Mar 5 12:17:51 UTC 2016 - avvissu@yandex.ru diff --git a/qterminal.spec b/qterminal.spec index 0bdbe3b..27ca00b 100644 --- a/qterminal.spec +++ b/qterminal.spec @@ -24,6 +24,10 @@ License: GPL-2.0 Group: System/X11/Terminals Url: http://lxqt.org Source0: https://github.com/lxde/qterminal/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# Without this its possible to disable the menu bar with no way to re-enable it +# Upstreamed with https://github.com/lxde/qterminal/commit/ad2445836ad744539b4d9e03e20f2308e6e26deb#diff-0ef013cb405aa918f9f7af26a0c78c30 +# should be in next release +Patch0: preferences_context_menu.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libQt5Gui-private-headers-devel @@ -44,6 +48,7 @@ The lightweight Qt terminal emulator. %prep %setup -q +%patch0 -p1 %build %cmake \