diff --git a/src/gui/viewmanager.py b/src/gui/viewmanager.py index f158a7039..f379f0c2d 100644 --- a/src/gui/viewmanager.py +++ b/src/gui/viewmanager.py @@ -939,10 +939,8 @@ class ViewManager(CLIManager): uimenuitems += '\n' % pageid uitoolitems += '\n' % pageid # id, stock, button text, UI, tooltip, page - if nrpage < 9 * 3: - modifier = ["", - "", - ""][int(nrpage / 9)] + str((nrpage % 9) + 1) + if nrpage < 9: + modifier = "%d" % ((nrpage % 9) + 1) else: modifier = "" self.view_toggle_actions[indexcat].append((pageid,