[gedit-plugins] [multiedit] Unset view only after no longer used



commit d21352564a15dffac9c6bdd6e908cd035e47b46c
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Jan 13 14:43:36 2014 +0100

    [multiedit] Unset view only after no longer used

 plugins/multiedit/multiedit/viewactivatable.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/multiedit/multiedit/viewactivatable.py b/plugins/multiedit/multiedit/viewactivatable.py
index 48c69c5..ddf250a 100644
--- a/plugins/multiedit/multiedit/viewactivatable.py
+++ b/plugins/multiedit/multiedit/viewactivatable.py
@@ -82,10 +82,7 @@ class MultiEditViewActivatable(GObject.Object, Gedit.ViewActivatable, Signals):
         self._cancel_column_mode()
         self.reset_buffer(None)
 
-        self.view.multiedit_document_helper = None
-
         self.disconnect_signals(self.view)
-        self.view = None
 
         if self._status_timeout != 0:
             GObject.source_remove(self._status_timeout)
@@ -96,6 +93,7 @@ class MultiEditViewActivatable(GObject.Object, Gedit.ViewActivatable, Signals):
             self._delete_mode_id = 0
 
         delattr(self.view, 'multiedit_view_activatable')
+        self.view = None
 
     def enabled(self):
         return self._in_mode


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