diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2016-10-31 23:10:40 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-11-22 13:59:37 +0100 |
commit | fa933acd44a84d0b5022f23d768b05a2b5a2202d (patch) | |
tree | d4ed689b7bde870045b2fc818cc8fb4f57369059 /meta-xfce/recipes-apps/menulibre/files/0001-add_launcher-Exit-early-if-no-row-is-selected.patch | |
parent | 6914eb6354189dd3b625192e12b22e64f277e236 (diff) | |
download | meta-openembedded-fa933acd44a84d0b5022f23d768b05a2b5a2202d.tar.gz |
menulibre: initial add 2.1.3
it was added in meta-xfce for two reasons:
* xfce4-whiskermenu-plugin suggests menulibre as menu editor
* meta-xfce requires meta-python already and menulibre requires some recipes
within meta-python
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-xfce/recipes-apps/menulibre/files/0001-add_launcher-Exit-early-if-no-row-is-selected.patch')
-rw-r--r-- | meta-xfce/recipes-apps/menulibre/files/0001-add_launcher-Exit-early-if-no-row-is-selected.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-xfce/recipes-apps/menulibre/files/0001-add_launcher-Exit-early-if-no-row-is-selected.patch b/meta-xfce/recipes-apps/menulibre/files/0001-add_launcher-Exit-early-if-no-row-is-selected.patch new file mode 100644 index 000000000..fb2dfc90a --- /dev/null +++ b/meta-xfce/recipes-apps/menulibre/files/0001-add_launcher-Exit-early-if-no-row-is-selected.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 1060e7ac8a63b93d56006718f0e9b1d9382b2226 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Mon, 31 Oct 2016 08:33:16 +0100 | ||
4 | Subject: [PATCH] add_launcher: Exit early if no row is selected | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Stolen from [1] | ||
10 | |||
11 | [1] http://pkgs.fedoraproject.org/cgit/rpms/menulibre.git/tree/menulibre-add-launcher-none-check.patch | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | |||
15 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
16 | --- | ||
17 | menulibre/MenulibreApplication.py | 4 ++++ | ||
18 | 1 file changed, 4 insertions(+) | ||
19 | |||
20 | diff --git a/menulibre/MenulibreApplication.py b/menulibre/MenulibreApplication.py | ||
21 | index e234800..ac73b03 100644 | ||
22 | --- a/menulibre/MenulibreApplication.py | ||
23 | +++ b/menulibre/MenulibreApplication.py | ||
24 | @@ -1418,6 +1418,10 @@ class MenulibreWindow(Gtk.ApplicationWindow): | ||
25 | model, parent_data = self.treeview.get_parent_row_data() | ||
26 | model, row_data = self.treeview.get_selected_row_data() | ||
27 | |||
28 | + # Exit early if no row is selected | ||
29 | + if not row_data: | ||
30 | + return | ||
31 | + | ||
32 | # Currently selected item is a directory, take its categories. | ||
33 | if row_data[2] == MenuItemTypes.DIRECTORY: | ||
34 | self.treeview.add_child(new_row_data) | ||
35 | -- | ||
36 | 2.5.5 | ||
37 | |||