From 4e20d465e222d59b8dbbd3589f759efa44ea8953 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 16 Jul 2015 13:16:20 +0300 Subject: fix wrong highlighting while moving menu items when separators are present. fixes https://github.com/mate-desktop/mozo/issues/16 --- Mozo/MainWindow.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Mozo') diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py index 92f46c3..41fa9a5 100644 --- a/Mozo/MainWindow.py +++ b/Mozo/MainWindow.py @@ -128,6 +128,8 @@ class MainWindow: found = True if item[3].get_type() == matemenu.TYPE_SEPARATOR: if not isinstance(item_id, tuple): + #we may not skip the increment via "continue" + i += 1 continue #separators have no id, have to find them manually #probably won't work with two separators together -- cgit v1.2.1