[gedit/wip/redesign2] et: fix
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/redesign2] et: fix
- Date: Fri, 3 Jan 2014 12:33:08 +0000 (UTC)
commit f12276061950ba48cd655a69afacd04f34b4f05f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Jan 3 11:27:14 2014 +0100
et: fix
plugins/externaltools/tools/windowactivatable.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/externaltools/tools/windowactivatable.py
b/plugins/externaltools/tools/windowactivatable.py
index 3f88659..1a1bb0d 100644
--- a/plugins/externaltools/tools/windowactivatable.py
+++ b/plugins/externaltools/tools/windowactivatable.py
@@ -109,8 +109,9 @@ class ToolMenu(object):
for name, tool in self._action_tools.items():
action = self._window.lookup_action(name)
- action.set_enabled(states[tool.applicability] and
- self.filter_language(language, tool))
+ if action:
+ action.set_enabled(states[tool.applicability] and
+ self.filter_language(language, tool))
# FIXME: restore the launch of the manager on configure using PeasGtk.Configurable
class WindowActivatable(GObject.Object, Gedit.WindowActivatable):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]