<table><tr><td style="">davidedmundson requested changes to this revision.<br />davidedmundson added a comment.<br />This revision now requires changes to proceed.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12837">View Revision</a></tr></table><br /><div><div><p>It might work, but it's overly messy.</p>

<p>We have addAccountToCache which has an argument pos, which determines if we're adding or replacing.</p>

<p>Then we have a second replace method replaceAccount which also does replacing.<br />
So we have two ways of replacing an entry both and both are used once, and they're both identical except for a very subtle change on usage of m_userPath.</p>

<p>I'm sure we can do something better.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R128 User Manager</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12837">https://phabricator.kde.org/D12837</a></div></div><br /><div><strong>To: </strong>valeriymalov, Plasma, davidedmundson<br /><strong>Cc: </strong>davidedmundson, ngraham, rdieter, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>