mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-200404 Idea change Password Safe option silently on "cancel" in case selected DB is unaccessible
This commit is contained in:
@@ -170,9 +170,7 @@ internal class PasswordSafeConfigurableUi : ConfigurableUi<PasswordSafeSettings>
|
||||
settings.keepassDb = newDbFile.toString()
|
||||
|
||||
try {
|
||||
runModalTask("Saving KeePass database", cancellable = false) {
|
||||
KeePassFileManager(newDbFile, getDefaultMasterPasswordFile(), getEncryptionSpec(), secureRandom).useExisting()
|
||||
}
|
||||
KeePassFileManager(newDbFile, getDefaultMasterPasswordFile(), getEncryptionSpec(), secureRandom).useExisting()
|
||||
}
|
||||
catch (e: IncorrectMasterPasswordException) {
|
||||
throw ConfigurationException("Master password for KeePass database is not correct (\"Clear\" can be used to reset database).")
|
||||
|
||||
Reference in New Issue
Block a user