summaryrefslogtreecommitdiff
path: root/Mozo/MainWindow.py
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-07-16 13:16:20 +0300
committermonsta <[email protected]>2015-07-16 13:16:20 +0300
commit4e20d465e222d59b8dbbd3589f759efa44ea8953 (patch)
tree1ed628ecddfcb393b1d2b4488ce5043849bcb846 /Mozo/MainWindow.py
parent6cb1b0bf7c607e9d4f80c33028813fb405d0a3ad (diff)
downloadmozo-4e20d465e222d59b8dbbd3589f759efa44ea8953.tar.bz2
mozo-4e20d465e222d59b8dbbd3589f759efa44ea8953.tar.xz
fix wrong highlighting while moving menu items
when separators are present. fixes https://github.com/mate-desktop/mozo/issues/16
Diffstat (limited to 'Mozo/MainWindow.py')
-rw-r--r--Mozo/MainWindow.py2
1 files changed, 2 insertions, 0 deletions
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