DBManager -> Browser synchronization

Reload/refresh the browser tree and source select connection
items when connections, tables etc. change in the DBManager

Note that this is uni-directional: changes in the browser tree
are not (yet) propagated to the DBManager
This commit is contained in:
Alessandro Pasotti 2017-09-15 17:08:11 +02:00
parent fc561d0375
commit 7a1b9f970b

View File

@ -57,6 +57,7 @@ class DBManager(QMainWindow):
self.tabs.currentChanged.connect(self.tabChanged)
self.tree.selectedItemChanged.connect(self.itemChanged)
self.tree.model().dataChanged.connect(self.iface.reloadConnections)
self.itemChanged(None)
def closeEvent(self, e):