[dbmanager] followup 8727799: again some emit signal fix

This commit is contained in:
Salvatore Larosa 2016-06-11 18:28:40 +02:00
parent 61eea8674a
commit f1ec12133e
2 changed files with 2 additions and 2 deletions

View File

@ -527,7 +527,7 @@ class ORTableField(TableField):
def update(self, new_name, new_type_str=None, new_not_null=None,
new_default_str=None):
self.table().aboutToChange()
self.table().aboutToChange.emit()
if self.name == new_name:
new_name = None
if self.type2String() == new_type_str:

View File

@ -184,7 +184,7 @@ class PGTable(Table):
self.schema().refresh() if self.schema() else self.database().refresh()
def runRefreshMaterializedView(self):
self.aboutToChange()
self.aboutToChange.emit()
self.database().connector.runRefreshMaterializedView((self.schemaName(), self.name))
# TODO: change only this item, not re-create all the tables in the schema/database
self.schema().refresh() if self.schema() else self.database().refresh()