Fix a traceback when creating a gaptab

This commit is contained in:
mathieui 2014-05-05 00:01:09 +02:00
parent 5cfe79e5e1
commit b8972ad940

View file

@ -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