 class ManageDatabasesModal extends KDModalViewWithForms
 
   constructor:(options = {}, data)->
+
+    ## LOG: Duplicate entries in database.
+    @databases = {}
+    ##
 
     options =
       title                   : "Manage Databases"


    @dbController.on "DatabaseAdded", (data)=>

      dbCreateForm.inputs.dbType.makeDisabled()
      dbCreateForm.inputs.dbKind.makeDisabled()
      @newDBCreatedWidget?.destroy?()

        KD.utils.wait 300, => @setPositions()

      @dbController.loadItems()

  ## LOG: Duplicate entries in database.
  databaseAdded: (data)->
    if @databases[data.dbName]
      KD.logToExternal msg:"duplicate database", dbName:data.dbName
    else
      @databases[data.dbName] = true
  ##

class AccountDatabaseListController extends KDListViewController

