From 2726a2af37864963892faf5b974f2051d4cf4211 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Thu, 6 Jun 2013 09:00:44 +0000 Subject: [PATCH] Do not return from read_config() when configuration isn't present: applet will not be loaded. --- ede-panel/Panel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ede-panel/Panel.cpp b/ede-panel/Panel.cpp index f9c745e..335d712 100644 --- a/ede-panel/Panel.cpp +++ b/ede-panel/Panel.cpp @@ -240,8 +240,12 @@ Panel::Panel() : PanelWindow(300, 30, "ede-panel") { void Panel::read_config(void) { Resource r; - if(!r.load("ede-panel")) + + /* try to load applets even if panel configuration isn't present */ + if(E_UNLIKELY(r.load("ede-panel") == false)) { + load_applets(); return; + } int tmp; if(r.get("Panel", "position", tmp, PANEL_POSITION_BOTTOM)) {