Commit f562e4be authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

fix minor issue with custom widgets

parent 206c7f57
......@@ -72,6 +72,11 @@ class TC(QtGui.QDockWidget, QObject):
self.setObjectName(self.name)
self.show()
@staticmethod
def applicable():
'''' Return true is the widget is active '''
return True
def connect_to_db():
'''
......
......@@ -438,6 +438,7 @@ def gui():
button.clicked.connect(editor.meter)
elif button.objectName() == 'customCombo':
if not customTM:
button.hide()
continue
myMenu = QMenu()
for each in customTM:
......@@ -473,6 +474,7 @@ def gui():
elif button.objectName() == 'customCombo':
if not customTC:
button.hide()
continue
myMenu = QMenu()
for each in customTC:
action = QAction(each.name, myMenu)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment