Fix table icon issue when updating any existing field. Fixes #4437

This commit is contained in:
Akshay Joshi 2019-07-04 17:34:47 +05:30
parent 588e3814d1
commit bf1f9a4b07
6 changed files with 14 additions and 13 deletions

View File

@ -18,3 +18,4 @@ Bug fixes
| `Bug #4224 <https://redmine.postgresql.org/issues/4224>`_ - Prevent flickering of large tooltips on the Graphical EXPLAIN canvas.
| `Bug #4395 <https://redmine.postgresql.org/issues/4395>`_ - EXPLAIN options should be Query Tool instance-specific.
| `Bug #4437 <https://redmine.postgresql.org/issues/4437>`_ - Fix table icon issue when updating any existing field.

View File

@ -315,15 +315,15 @@ class TableView(BaseTableView, DataTypeReader, VacuumSettings):
if ('is_inherited' in table_info and
table_info['is_inherited'] == '1')\
or ('inherited_tables_cnt' in table_info and
len(table_info['inherited_tables_cnt']) > 0):
or ('relhassubclass' in table_info and
table_info['relhassubclass']):
default_val = 'icon-table-multi-inherit'
else:
default_val = 'icon-table-inherits'
elif ('is_inherited' in table_info and
table_info['is_inherited'] == '1')\
or ('inherited_tables_cnt' in table_info and
len(table_info['inherited_tables_cnt']) > 0):
or ('relhassubclass' in table_info and
table_info['relhassubclass']):
default_val = 'icon-table-inherited'
return super(TableView, self).\