From 5b99d764f01784d5652269a5e0148f33a31a20cb Mon Sep 17 00:00:00 2001 From: Albert S Date: Tue, 1 Sep 2020 21:50:24 +0200 Subject: [PATCH] ConfigReader: use suffix() instead of completeSuffix() Using completeSuffix breaks for names like org.kde.dolphin.desktop --- config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.cpp b/config.cpp index 717b0e6..757da9b 100644 --- a/config.cpp +++ b/config.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 Albert S. + * Copyright (c) 2018-2020 Albert S. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -185,7 +185,7 @@ QVector ConfigReader::readConfig() QFileInfo info(path); if(info.isFile()) { - QString suffix = info.completeSuffix(); + QString suffix = info.suffix(); if(suffix == "desktop") { result.append(readFromDesktopFile(path));