Hello! I wonder about the code of kdesktopfile.cpp at line 80: ... QString KDesktopFile::locateLocal(const QString &path) { QString relativePath; // Relative to config? (e.g. for autostart) Q_FOREACH (const QString &dir, QStandardPaths::standardLocations(QStandardPaths::GenericConfigLocation)) { if (path.startsWith(dir) + '/') {
because path.startsWith(dir) returns "bool" and '/' is a character. HOW can be the "+" be made and what is the type of the result? ... relativePath = dir.mid(path.length() + 1); relativePath is sometimes mysterious: (gdb) printqs5static path (Qt5 QString)0xffffbcb8 length=17: "kdevninja.desktop" (gdb) printqs5static dir (Qt5 QString)0x26be3f8 length=21: "/home/guy-kde/.config" (gdb) printqs5static relativePath (Qt5 QString)0xffffbc40 length=3: "fig" Can anybody help? -- Guy Maurel _______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel