From b8972ad94029f490ce4cb67d9aa8e2c921e13366 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 5 May 2014 00:01:09 +0200 Subject: Fix a traceback when creating a gaptab --- src/tabs/basetabs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3