[gnome-software] trivial: No critical warnings when installing local files
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: No critical warnings when installing local files
- Date: Mon, 25 Apr 2016 14:49:19 +0000 (UTC)
commit 5aa0999e71da21f2d67b1032dbd0ad5a1f725ecc
Author: Richard Hughes <richard hughsie com>
Date: Mon Apr 25 15:07:25 2016 +0100
trivial: No critical warnings when installing local files
src/plugins/gs-plugin-packagekit-local.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-local.c b/src/plugins/gs-plugin-packagekit-local.c
index db55b7a..b35549e 100644
--- a/src/plugins/gs-plugin-packagekit-local.c
+++ b/src/plugins/gs-plugin-packagekit-local.c
@@ -80,8 +80,10 @@ gs_plugin_packagekit_progress_cb (PkProgress *progress,
gs_plugin_status_update (plugin, NULL, plugin_status);
} else if (type == PK_PROGRESS_TYPE_PERCENTAGE) {
gint percentage = pk_progress_get_percentage (progress);
- if (percentage >= 0 && percentage <= 100)
- gs_app_set_progress (data->app, percentage);
+ if (percentage >= 0 && percentage <= 100) {
+ if (data->app != NULL)
+ gs_app_set_progress (data->app, percentage);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]