ConfigReader: use suffix() instead of completeSuffix()

Using completeSuffix breaks for names like org.kde.dolphin.desktop
Bu işleme şunda yer alıyor:
Albert S. 2020-09-01 21:50:24 +02:00
ebeveyn d6ec7a7e1c
işleme 5b99d764f0

Dosyayı Görüntüle

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018-2019 Albert S. <mail at quitesimple dot org> * Copyright (c) 2018-2020 Albert S. <mail at quitesimple dot org>
* *
* Permission to use, copy, modify, and distribute this software for any * Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * purpose with or without fee is hereby granted, provided that the above
@ -185,7 +185,7 @@ QVector<EntryConfig> ConfigReader::readConfig()
QFileInfo info(path); QFileInfo info(path);
if(info.isFile()) if(info.isFile())
{ {
QString suffix = info.completeSuffix(); QString suffix = info.suffix();
if(suffix == "desktop") if(suffix == "desktop")
{ {
result.append(readFromDesktopFile(path)); result.append(readFromDesktopFile(path));