[hardware-monitor] 2009-05-02 Ole Laursen <olau hardworking dk>



commit 719c78b1803184f25c8c70f5a9656e3fc9d8fd05
Author: Ole Laursen <olau hardworking dk>
Date:   Sat May 2 00:10:34 2009 +0200

    2009-05-02  Ole Laursen  <olau hardworking dk>
    
    	* src/applet.cpp: Fixed compiler warning about ambigious if-if-else.
---
 ChangeLog      |    4 ++++
 src/applet.cpp |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ea5ad37..7bc5cd1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-02  Ole Laursen  <olau hardworking dk>
+
+	* src/applet.cpp: Fixed compiler warning about ambigious if-if-else.
+
 2009-05-01  Ole Laursen  <olau hardworking dk>
 
 	* hardware-monitor.doap: Added DOAP file as requested by sysadm team.
diff --git a/src/applet.cpp b/src/applet.cpp
index d4a1596..dae05b5 100644
--- a/src/applet.cpp
+++ b/src/applet.cpp
@@ -416,11 +416,12 @@ void Applet::use_background_color_listener(unsigned int, Gnome::Conf::Entry entr
   else
     color = v.get_int();
 
-  if (view.get())
+  if (view.get()) {
     if (use)
       view->set_background(color);
     else
       view->unset_background();
+  }
 }
 
 Glib::ustring Applet::find_empty_monitor_dir()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]