[gnome-software/gnome-3-10] Avoid adding pending apps more than once to the installed list
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-10] Avoid adding pending apps more than once to the installed list
- Date: Tue, 26 Nov 2013 02:54:00 +0000 (UTC)
commit 34b97f2a9f736dbb19bce20965f24774b64e635d
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 25 21:52:46 2013 -0500
Avoid adding pending apps more than once to the installed list
This is a backport of an existing fix on master.
https://bugzilla.gnome.org/show_bug.cgi?id=711613
src/gs-shell-installed.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index 2073ecb..c3ad54f 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -416,8 +416,10 @@ gs_shell_installed_pending_apps_changed_cb (GsPluginLoader *plugin_loader,
/* sort installing apps above removing and
* installed apps
*/
- gs_app_set_install_date (app, G_MAXUINT - 1);
- gs_shell_installed_add_app (shell_installed, app);
+ if (gs_app_get_install_date (app) != G_MAXUINT - 1) {
+ gs_app_set_install_date (app, G_MAXUINT - 1);
+ gs_shell_installed_add_app (shell_installed, app);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]