https://bugs.kde.org/show_bug.cgi?id=325427

H.H. <cyberb...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #5 from H.H. <cyberb...@gmx.de> ---
Thanks for fixing the crash.

My original problem is still not solved. Explanation:

> In this case, the thunderbird extensions should use a more specific folder 
> name. I suggest you file a bug to that extension's developer.

The problem is, that the extension can be used for thunderbird AND/OR firefox.

So the extension's developer can not know, which name to set (firefox or
thunderbird), so he built a configuration option for that name. Thats fine in
general.

I could add a "renameFolder" Method to the kwallet API and kwalletmanager.
Would it be accepted?  I already had a look at the code, the method in the
backend would look similar to

bool Backend::renameFolder(const QString &from, const QString &to)
{
    if (!_entries.contains(from)) {
        return false;
    }
    if (_entries.contains(to)) {
        return false;
    }
    EntryMap entryMap = _entries.take(from);
    _entries.insert(to, entryMap);

    QCryptographicHash fromMd5(QCryptographicHash::Md5);
    fromMd5.addData(from.toUtf8());
    QCryptographicHash toMd5(QCryptographicHash::Md5);
    toMd5.addData(to.toUtf8());

    QList<MD5Digest> hashList = _hashes.take(MD5Digest(fromMd5.result()));

    _hashes.insert(MD5Digest(toMd5.result()), hashList);

    return true;
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to