- 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
This commit is contained in:
Michael Vetter 2016-03-08 13:56:26 +00:00 committed by Git OBS Bridge
parent 15097196a4
commit 38b2e429fa
3 changed files with 25 additions and 0 deletions

View File

@ -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));
}

View File

@ -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

View File

@ -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 \