TERuleQueryTab: the parent is not the tab

The parent is a top-level widget (from the tab's perspective) which has
no parent.
This commit is contained in:
Chris PeBenito 2015-06-17 08:40:35 -04:00
parent 124cdd32df
commit 25168b11ff

View File

@ -30,12 +30,11 @@ from .models import PermListModel, SEToolsListModel
class TERuleQueryTab(SEToolsWidget, QScrollArea):
def __init__(self, tab, policy):
super(TERuleQueryTab, self).__init__(tab)
def __init__(self, parent, policy):
super(TERuleQueryTab, self).__init__(parent)
self.log = logging.getLogger(self.__class__.__name__)
self.policy = policy
self.query = TERuleQuery(policy)
self.tab = tab
self.setupUi()
def setupUi(self):