[gnome-panel] applet-frame: don't try to load applet that does not exist
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] applet-frame: don't try to load applet that does not exist
- Date: Wed, 14 Oct 2020 19:53:41 +0000 (UTC)
commit 49586510ea040e18aeb147acd56740346a9c3c60
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Oct 14 22:47:09 2020 +0300
applet-frame: don't try to load applet that does not exist
gnome-panel/panel-applet-frame.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gnome-panel/panel-applet-frame.c b/gnome-panel/panel-applet-frame.c
index a9431de72..60698e990 100644
--- a/gnome-panel/panel-applet-frame.c
+++ b/gnome-panel/panel-applet-frame.c
@@ -961,6 +961,11 @@ panel_applet_frame_load_helper (const gchar *iid,
return;
}
+ if (panel_applets_manager_get_applet_info (iid) == NULL) {
+ panel_applet_frame_loading_failed (iid, panel, id);
+ return;
+ }
+
if (panel_applets_manager_is_applet_disabled (iid, NULL)) {
panel_object_loader_stop_loading (id);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]