[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 17/96: Only close XFCE4 settings file if one was opened in Applet constructor

noreply at xfce.org noreply at xfce.org
Thu Nov 27 22:20:22 CET 2014


This is an automated email from the git hooks/post-receive script.

nick pushed a commit to branch master
in repository panel-plugins/xfce4-hardware-monitor-plugin.

commit 45ec76d395fd6737421bf44829ab1d6ad0c1cd2c
Author: Omega Weapon <OmegaPhil at gmail.com>
Date:   Tue Oct 29 20:24:23 2013 +0000

    Only close XFCE4 settings file if one was opened in Applet constructor
---
 src/applet.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/applet.cpp b/src/applet.cpp
index 523753b..c5e08e2 100644
--- a/src/applet.cpp
+++ b/src/applet.cpp
@@ -241,7 +241,8 @@ Applet::Applet(XfcePanelPlugin *plugin)
     add_monitor(*i);
 
   // All settings loaded
-  xfce_rc_close(settings);
+  if (settings)
+    xfce_rc_close(settings);
 
   /* TODO: This should be completely irrelevant as the view and background colour is already set above
   // Start displaying something

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list