Merge remote-tracking branch 'origin/release/20.12'

This commit is contained in:
David Faure 2020-12-15 18:48:11 +01:00
commit 42cd439af8
2 changed files with 5 additions and 2 deletions

View file

@ -57,8 +57,8 @@ void PlacesItemListWidget::updateCapacityBar()
}
const QUrl url = data().value("url").toUrl();
if (m_freeSpaceInfo.job || !m_freeSpaceInfo.lastUpdated.hasExpired()) {
// Job running or cache is still valid.
if (url.isEmpty() || m_freeSpaceInfo.job || !m_freeSpaceInfo.lastUpdated.hasExpired()) {
// No url, job running or cache is still valid.
return;
}

View file

@ -290,6 +290,9 @@ bool cmdInstall(const QString &archive, QString &errorText)
if (archive.endsWith(QLatin1String(".desktop"))) {
// Append basename to destination directory
const auto dest = QDir(serviceDir).absoluteFilePath(QFileInfo(archive).fileName());
if (QFileInfo::exists(dest)) {
QFile::remove(dest);
}
qInfo() << "Single-File Service-Menu" << archive << dest;
QFile source(archive);