Update dialog.cpp

no need to use to password manager.setdatabasename unless you have more than one sources for db
Merge pull request #1 from tachyons/patch-1

Update dialog.cpp