Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dbmanager] clear create table dialog on succes (fix #25535)
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Mar 27, 2020
1 parent 83c44bf commit 89c49b2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion python/plugins/db_manager/dlg_create_table.py
Expand Up @@ -309,6 +309,19 @@ def createTable(self):

except (ConnectionError, DbError) as e:
DlgDbError.showError(e, self)
return

# clear UI
self.editName.clear()
self.fields.model().removeRows(0, self.fields.model().rowCount())
self.cboPrimaryKey.clear()
self.chkGeomColumn.setChecked(False)
self.chkSpatialIndex.setChecked(False)
self.editGeomSrid.clear()

self.cboGeomType.setEnabled(False)
self.editGeomColumn.setEnabled(False)
self.spinGeomDim.setEnabled(False)
self.editGeomSrid.setEnabled(False)
self.chkSpatialIndex.setEnabled(False)

QMessageBox.information(self, self.tr("DB Manager"), self.tr("Table created successfully."))

0 comments on commit 89c49b2

Please sign in to comment.