Commit 28f254aa authored by Alexander Lohnau's avatar Alexander Lohnau
Browse files

Fix updating of entry if version number is empty

The status was set to installed and then the values were not updated.
BUG: 417510
FIXED-IN: 5.75
parent 4bdea213
......@@ -287,16 +287,12 @@ void KNSCore::Installation::install(KNSCore::EntryInternal entry, const QString&
auto installationFinished = [this, entry]() {
EntryInternal newentry = entry;
// update version and release date to the new ones
if (newentry.status() == KNS3::Entry::Updating) {
if (!newentry.updateVersion().isEmpty()) {
newentry.setVersion(newentry.updateVersion());
}
if (newentry.updateReleaseDate().isValid()) {
newentry.setReleaseDate(newentry.updateReleaseDate());
}
if (!newentry.updateVersion().isEmpty()) {
newentry.setVersion(newentry.updateVersion());
}
if (newentry.updateReleaseDate().isValid()) {
newentry.setReleaseDate(newentry.updateReleaseDate());
}
newentry.setStatus(KNS3::Entry::Installed);
Q_EMIT signalEntryChanged(newentry);
Q_EMIT signalInstallationFinished();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment