summaryrefslogtreecommitdiff
path: root/main/src/ui
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2021-10-04 04:18:06 +0200
committerArne Schwabe <arne@rfc2549.org>2021-10-04 04:18:06 +0200
commit650e238b7676393cd426a7cdb86fcc4fd2d87a6d (patch)
tree440328c0d9f99ca232d2c505c0427ec0ccfdbc60 /main/src/ui
parentaf6c8187ecff2ca2955f267975e346e34f0a4c91 (diff)
Ensure profile is saved if auth/password is queried on startup
This ensure the profile counter is incremented and the profile is saved to disk to avoid the race condition of not getting the user/pass which was started. Closes #1342
Diffstat (limited to 'main/src/ui')
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt b/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt
index a2799d09..5426f669 100644
--- a/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt
+++ b/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt
@@ -197,7 +197,7 @@ class ConfigConverter : BaseActivity(), FileSelectCallback, View.OnClickListener
ConfigParser.useEmbbedUserAuth(mResult, mEmbeddedPwFile)
vpl.addProfile(mResult)
- vpl.saveProfile(this, mResult)
+ ProfileManager.saveProfile(this, mResult)
vpl.saveProfileList(this)
result.putExtra(VpnProfile.EXTRA_PROFILEUUID, mResult!!.uuid.toString())
setResult(Activity.RESULT_OK, result)