diff options
author | Bernd Weimer <bernd.weimer@pelagicore.com> | 2019-09-06 13:12:50 +0200 |
---|---|---|
committer | Bernd Weimer <bernd.weimer@pelagicore.com> | 2019-09-12 11:59:45 +0200 |
commit | 877e4cd4cf7f581a0a92eb2adb6f95695b186104 (patch) | |
tree | 55f35f8dcde6fd73d7704df275f1857b619615d8 /src/manager-lib/application.h | |
parent | ff4bc7cbaf5827736fda4b1a8c85fcdd351680c1 (diff) |
Fix canceling installations
Canceling an update left the app in an inconsistent state. There is
still a known issues: canceling the update of an already updated
built-in app will revert back to the original app. This will be
fixed in 5.14
Also downgrading a built-in app didn't work as expected (the app would
be blocked, the icon etc. wouldn't be updated).
Change-Id: I6c72e7f87e993a6839e97ceb6cea443f07e1fd77
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'src/manager-lib/application.h')
-rw-r--r-- | src/manager-lib/application.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/manager-lib/application.h b/src/manager-lib/application.h index 673cdfe5..b5c62338 100644 --- a/src/manager-lib/application.h +++ b/src/manager-lib/application.h @@ -201,9 +201,11 @@ public: removed when requested. */ void setBaseInfo(ApplicationInfo*); + AbstractApplicationInfo *baseInfo() const { return m_info.data(); } + ApplicationInfo *takeBaseInfo(); void setUpdatedInfo(ApplicationInfo*); ApplicationInfo *updatedInfo() const { return m_updatedInfo.data(); } - ApplicationInfo *takeBaseInfo(); + ApplicationInfo *takeUpdatedInfo(); void setState(State); void setProgress(qreal); |