[Xfce4-commits] [apps/xfburn] 01/01: Minor device change event clean-up

noreply at xfce.org noreply at xfce.org
Sun Apr 6 05:24:37 CEST 2014


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

squisher pushed a commit to branch master
in repository apps/xfburn.

commit dc1566322b508c500ad4d047428094bb923c1e46
Author: David Mohr <david at mcbf.net>
Date:   Sat Apr 5 20:30:45 2014 -0600

    Minor device change event clean-up
---
 xfburn/xfburn-device-list.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/xfburn/xfburn-device-list.c b/xfburn/xfburn-device-list.c
index 6c25b0c..7342900 100644
--- a/xfburn/xfburn-device-list.c
+++ b/xfburn/xfburn-device-list.c
@@ -335,11 +335,10 @@ cb_combo_device_changed (GtkComboBox *combo, XfburnDeviceList *devlist)
   g_signal_emit (G_OBJECT (devlist), signals[VOLUME_CHANGE_START], 0, TRUE);
   device = get_selected_device (combo);
 
-  if (device == NULL)
-    return;
-
-  priv->curr_device = device;
-  xfburn_device_refresh_info (device, TRUE);
+  if (device != NULL) {
+    priv->curr_device = device;
+    xfburn_device_refresh_info (device, TRUE);
+  }
   g_signal_emit (G_OBJECT (devlist), signals[VOLUME_CHANGE_END], 0, TRUE, device);
 }
 

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


More information about the Xfce4-commits mailing list