diff options
author | Wu Xiaotian <[email protected]> | 2019-02-20 18:20:13 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-02-23 19:59:01 +0100 |
commit | ae480e9fb7237e6c2d0608d4491ba4a6617c64f9 (patch) | |
tree | 36d5ef739f502ee14a228b22d0936ab80c432b81 | |
parent | ae538cdba5d608967544ca4b729ac77a6c0cd62a (diff) | |
download | mozo-ae480e9fb7237e6c2d0608d4491ba4a6617c64f9.tar.bz2 mozo-ae480e9fb7237e6c2d0608d4491ba4a6617c64f9.tar.xz |
Fix menu entry can not move
-rw-r--r-- | Mozo/MainWindow.py | 4 |
1 files 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): |