[alacarte] Fix erroneous selection handling below separator items



commit 7c6a18c8a5170c5abc77f8bace1313578fec0d48
Author: Lars Kruse <devel sumpfralle de>
Date:   Mon Aug 22 20:58:39 2011 +0200

    Fix erroneous selection handling below separator items
    
    https://bugzilla.gnome.org/show_bug.cgi?id=611280

 Alacarte/MainWindow.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
index 0d31043..b43ed32 100644
--- a/Alacarte/MainWindow.py
+++ b/Alacarte/MainWindow.py
@@ -130,6 +130,8 @@ class MainWindow:
 						found = True
 				if item[3].get_type() == gmenu.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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]