[dolphin] [Bug 492660] Renaming multiple files removes file extension for unknown file types

xust <[email protected]>
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=492660

xust <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from xust <[email protected]> ---
rename files which have same suffix `.idx` also makes file lost it's suffix.
seems like the `.idx` cannot be correctly batch renamed.
seems like a Qt bug, or the mime database doesn't contains the `.idx` suffix.
tested with minimal qt demo:
#include <QCoreApplication>
#include <QMimeData>
#include <QMimeDatabase>
#include <QDebug>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QMimeDatabase db;
    const QString extension =
db.suffixForFileName("/home/debian/Downloads/file.idx");
    qDebug() << "######  " << extension; // output an empty string
    return 0;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.