mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Fix minor issues found by EBN
This commit is contained in:
parent
e6dc4739c3
commit
96ebcb03df
|
@ -190,7 +190,7 @@ bool cmdInstall(const QString &archive, QString &errorText)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (archive.endsWith(".desktop")) {
|
||||
if (archive.endsWith(QLatin1String(".desktop"))) {
|
||||
// Append basename to destination directory
|
||||
const auto dest = QDir(serviceDir).absoluteFilePath(QFileInfo(archive).fileName());
|
||||
qInfo() << "Single-File Service-Menu" << archive << dest;
|
||||
|
@ -254,7 +254,7 @@ bool cmdInstall(const QString &archive, QString &errorText)
|
|||
bool cmdUninstall(const QString &archive, QString &errorText)
|
||||
{
|
||||
const auto serviceDir = getServiceMenusDir();
|
||||
if (archive.endsWith(".desktop")) {
|
||||
if (archive.endsWith(QLatin1String(".desktop"))) {
|
||||
// Append basename to destination directory
|
||||
const auto dest = QDir(serviceDir).absoluteFilePath(QFileInfo(archive).fileName());
|
||||
QFile file(dest);
|
||||
|
|
Loading…
Reference in a new issue