From cc60ccfbdd382875a43ea5c9fcd869e70d995975 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 18 Oct 2018 13:18:06 +0200 Subject: [PATCH] IDEA-200404 Idea change Password Safe option silently on "cancel" in case selected DB is unaccessible --- platform/credential-store/src/PasswordSafeConfigurable.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/credential-store/src/PasswordSafeConfigurable.kt b/platform/credential-store/src/PasswordSafeConfigurable.kt index 8a54ecc1c974..84cd11aef6d2 100644 --- a/platform/credential-store/src/PasswordSafeConfigurable.kt +++ b/platform/credential-store/src/PasswordSafeConfigurable.kt @@ -170,9 +170,7 @@ internal class PasswordSafeConfigurableUi : ConfigurableUi 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).")