ConfigReader: use suffix() instead of completeSuffix()
Using completeSuffix breaks for names like org.kde.dolphin.desktop
这个提交包含在:
父节点
d6ec7a7e1c
当前提交
5b99d764f0
@ -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
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -185,7 +185,7 @@ QVector<EntryConfig> ConfigReader::readConfig()
|
||||
QFileInfo info(path);
|
||||
if(info.isFile())
|
||||
{
|
||||
QString suffix = info.completeSuffix();
|
||||
QString suffix = info.suffix();
|
||||
if(suffix == "desktop")
|
||||
{
|
||||
result.append(readFromDesktopFile(path));
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户