mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (archive.endsWith(".desktop")) {
|
if (archive.endsWith(QLatin1String(".desktop"))) {
|
||||||
// Append basename to destination directory
|
// Append basename to destination directory
|
||||||
const auto dest = QDir(serviceDir).absoluteFilePath(QFileInfo(archive).fileName());
|
const auto dest = QDir(serviceDir).absoluteFilePath(QFileInfo(archive).fileName());
|
||||||
qInfo() << "Single-File Service-Menu" << archive << dest;
|
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)
|
bool cmdUninstall(const QString &archive, QString &errorText)
|
||||||
{
|
{
|
||||||
const auto serviceDir = getServiceMenusDir();
|
const auto serviceDir = getServiceMenusDir();
|
||||||
if (archive.endsWith(".desktop")) {
|
if (archive.endsWith(QLatin1String(".desktop"))) {
|
||||||
// Append basename to destination directory
|
// Append basename to destination directory
|
||||||
const auto dest = QDir(serviceDir).absoluteFilePath(QFileInfo(archive).fileName());
|
const auto dest = QDir(serviceDir).absoluteFilePath(QFileInfo(archive).fileName());
|
||||||
QFile file(dest);
|
QFile file(dest);
|
||||||
|
|
Loading…
Reference in a new issue