[dolphin] [Bug 492660] Renaming multiple files removes file extension for unknown file types
xust
bugzilla_noreply at kde.org
Wed Mar 19 07:49:46 GMT 2025
https://bugs.kde.org/show_bug.cgi?id=492660
xust <xushitong at uniontech.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xushitong at uniontech.com
--- Comment #2 from xust <xushitong at uniontech.com> ---
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.
More information about the kfm-devel
mailing list