summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-05-05 00:01:09 +0200
committermathieui <mathieui@mathieui.net>2014-05-05 00:01:09 +0200
commitb8972ad94029f490ce4cb67d9aa8e2c921e13366 (patch)
tree5ec96da5e74a3bb4cced1aa707060a2f52fa99e1 /src
parent5cfe79e5e1a18bf1ee192b5c363368a841bccdea (diff)
downloadpoezio-b8972ad94029f490ce4cb67d9aa8e2c921e13366.tar.gz
poezio-b8972ad94029f490ce4cb67d9aa8e2c921e13366.tar.bz2
poezio-b8972ad94029f490ce4cb67d9aa8e2c921e13366.tar.xz
poezio-b8972ad94029f490ce4cb67d9aa8e2c921e13366.zip
Fix a traceback when creating a gaptab
Diffstat (limited to 'src')
-rw-r--r--src/tabs/basetabs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tabs/basetabs.py b/src/tabs/basetabs.py
index 84469df4..d9225468 100644
--- a/src/tabs/basetabs.py
+++ b/src/tabs/basetabs.py
@@ -90,7 +90,8 @@ class Tab(object):
plugin_commands = {}
plugin_keys = {}
def __init__(self):
- self.name = self.__class__.__name__
+ if not hasattr(self, 'name'):
+ self.name = self.__class__.__name__
self.input = None
self._state = 'normal'
self._prev_state = None