Use profile name as account name to avoid overwriting passwords
commit659f536d35207ee8137c3271600b96c0616d877c
authorErik Quaeghebeur <trojita@equaeghe.nospammail.net>
Mon, 29 Feb 2016 20:33:10 +0000 (29 21:33 +0100)
committerErik Quaeghebeur <trojita@equaeghe.nospammail.net>
Sun, 6 Mar 2016 22:29:38 +0000 (6 23:29 +0100)
tree7869a163725ceeb94ef69ef93471b97769040eca
parentf560b26db2cc17c3f69f1f31f447168fd280bfa3
Use profile name as account name to avoid overwriting passwords

When storing the password using the QtKeyChain plugin, the lack of
an account name (also called account id in places) results in the
IMAP and SMTP password being overwritten in case multiple profiles
are used. This patch uses the profile name for the account name,
so that this does not happen.

Change-Id: I3a70a4865df2c016d67c15f0f1a28aedddab071c
src/Composer/Submission.cpp
src/Composer/Submission.h
src/Gui/ComposeWidget.cpp
src/Gui/SettingsDialog.cpp
src/Gui/Window.cpp
src/Imap/Model/ImapAccess.cpp
src/Imap/Model/ImapAccess.h
tests/Composer/test_Composer_Submission.cpp