diff --git a/src/core/krecentdocument.cpp b/src/core/krecentdocument.cpp --- a/src/core/krecentdocument.cpp +++ b/src/core/krecentdocument.cpp @@ -123,10 +123,9 @@ int i = 1; // check for duplicates while (QFile::exists(ddesktop)) { - // see if it points to the same file and application + // see if it points to the same file KDesktopFile tmp(ddesktop); - if (tmp.desktopGroup().readPathEntry("URL", QString()) == url.toDisplayString() - && tmp.desktopGroup().readEntry("X-KDE-LastOpenedWith") == desktopEntryName) { + if (tmp.desktopGroup().readPathEntry("URL", QString()) == url.toDisplayString()) { // Set access and modification time to current time ::utime(QFile::encodeName(ddesktop).constData(), nullptr); return;