Skip to content
Permalink
Browse files

[BUGFIX][DbManager] SQL Layer: fix unique combo setting

  • Loading branch information
rldhont committed Sep 27, 2018
1 parent 9809c7b commit 3183b307ce997628d724a8123524867188a975ed
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/plugins/db_manager/dlg_sql_layer_window.py
@@ -161,9 +161,8 @@ def __init__(self, iface, layer, parent=None):
item.setCheckState(Qt.Checked)
else:
keyColumn = uri.keyColumn()
for item in self.uniqueModel.findItems("*", Qt.MatchWildcard):
if item.data() == keyColumn:
self.uniqueCombo.setCurrentIndex(self.uniqueModel.indexFromItem(item).row())
if self.uniqueModel.findItems(keyColumn):
self.uniqueCombo.setEditText(keyColumn)

# Finally layer name, filter and selectAtId
self.layerNameEdit.setText(layer.name())

0 comments on commit 3183b30

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