Skip to content
Permalink
Browse files

[dbmanager] Fix some pyqtslot

  • Loading branch information
slarosa committed Jun 10, 2016
1 parent b9d1544 commit c578f3a635ad40abbf9aa7eee1e15f4dd96eb5d8
Showing with 8 additions and 8 deletions.
  1. +8 −8 python/plugins/db_manager/db_model.py
@@ -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'):
@@ -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:
@@ -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'):
@@ -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

0 comments on commit c578f3a

Please sign in to comment.
You can’t perform that action at this time.