[gedit-plugins] multiedit: do not set view to None on deactivate
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] multiedit: do not set view to None on deactivate
- Date: Mon, 14 Apr 2014 07:21:06 +0000 (UTC)
commit 21c4d88306a0f8aa2a7fd7d1d1de52d45a64b4e7
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Apr 14 09:19:43 2014 +0200
multiedit: do not set view to None on deactivate
activate/deactivate may be called several times for the same
view, i.e when attaching/detaching tabs and the property will
be set just at construction. Setting self.view to None will make
it work for the first time activate/deactivate is called.
plugins/multiedit/multiedit/viewactivatable.py | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/plugins/multiedit/multiedit/viewactivatable.py b/plugins/multiedit/multiedit/viewactivatable.py
index 872009e..0ab7113 100644
--- a/plugins/multiedit/multiedit/viewactivatable.py
+++ b/plugins/multiedit/multiedit/viewactivatable.py
@@ -93,7 +93,6 @@ 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]