Skip to content

Commit

Permalink
[dbmanager] Fix some pyqtslot
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jun 10, 2016
1 parent b9d1544 commit c578f3a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/plugins/db_manager/db_model.py
Expand Up @@ -140,8 +140,8 @@ class ConnectionItem(TreeItem):

def __init__(self, connection, parent=None):
TreeItem.__init__(self, connection, parent)
connection.changed.connect(self.itemChanged)
connection.deleted.connect(self.itemRemoved)
connection.changed.connect(self.itemWasChanged)
connection.deleted.connect(self.itemWasRemoved)

# load (shared) icon with first instance of table item
if not hasattr(ConnectionItem, 'connectedIcon'):
Expand Down Expand Up @@ -169,8 +169,8 @@ def populate(self):
return False

database = connection.database()
database.changed.connect(self.itemChanged)
database.deleted.connect(self.itemRemoved)
database.changed.connect(self.itemWasChanged)
database.deleted.connect(self.itemWasRemoved)

schemas = database.schemas()
if schemas is not None:
Expand All @@ -195,8 +195,8 @@ class SchemaItem(TreeItem):

def __init__(self, schema, parent):
TreeItem.__init__(self, schema, parent)
schema.changed.connect(self.itemChanged)
schema.deleted.connect(self.itemRemoved)
schema.changed.connect(self.itemWasChanged)
schema.deleted.connect(self.itemWasRemoved)

# load (shared) icon with first instance of schema item
if not hasattr(SchemaItem, 'schemaIcon'):
Expand Down Expand Up @@ -225,8 +225,8 @@ class TableItem(TreeItem):

def __init__(self, table, parent):
TreeItem.__init__(self, table, parent)
table.changed.connect(self.itemChanged)
table.deleted.connect(self.itemRemoved)
table.changed.connect(self.itemWasChanged)
table.deleted.connect(self.itemWasRemoved)
self.populate()

# load (shared) icon with first instance of table item
Expand Down

0 comments on commit c578f3a

Please sign in to comment.