From ae480e9fb7237e6c2d0608d4491ba4a6617c64f9 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Wed, 20 Feb 2019 18:20:13 +0800 Subject: Fix menu entry can not move --- Mozo/MainWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py index 849de09..19e2894 100644 --- a/Mozo/MainWindow.py +++ b/Mozo/MainWindow.py @@ -593,7 +593,7 @@ class MainWindow: item = items[path][3] before = items[(path.get_indices()[0] - 1,)][3] if isinstance(item, MateMenu.TreeEntry): - self.editor.moveItem(item, item.get_parent(), before=before) + self.editor.moveItem(item.get_parent(), item, before=before) elif isinstance(item, MateMenu.TreeDirectory): self.editor.moveMenu(item, item.get_parent(), before=before) elif isinstance(item, MateMenu.TreeSeparator): @@ -611,7 +611,7 @@ class MainWindow: item = items[path][3] after = items[path][3] if isinstance(item, MateMenu.TreeEntry): - self.editor.moveItem(item, item.get_parent(), after=after) + self.editor.moveItem(item.get_parent(), item, after=after) elif isinstance(item, MateMenu.TreeDirectory): self.editor.moveMenu(item, item.get_parent(), after=after) elif isinstance(item, MateMenu.TreeSeparator): -- cgit v1.2.1