[Xfce4-commits] <xfce4-diskperf-plugin:master> Do not display an error message for a device in the configuration dialog. (bug #6749)

Landry Breuil noreply at xfce.org
Wed Apr 25 19:44:02 CEST 2012


Updating branch refs/heads/master
         to ad59251801e95013b8c5b9b38119b607ac2a41f9 (commit)
       from eddc5ce5a21930526246390e9eca2ce9223676ff (commit)

commit ad59251801e95013b8c5b9b38119b607ac2a41f9
Author: Harald Judt <h.judt at gmx.at>
Date:   Wed Apr 25 19:41:39 2012 +0200

    Do not display an error message for a device in the configuration dialog. (bug #6749)
    
    If the device does not exist or there are other problems accessing
    it, do not show the error message in the configuration dialog and
    prevent the user to set the devicename. Instead, the tooltip will
    tell when there are problems gathering stats.

 panel-plugin/main.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 0b4ae8c..5f825e0 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -648,13 +648,6 @@ static void SetDevice (Widget_t p_wTF, void *p_pvPlugin)
     int             status;
 
     status = stat (pcDevice, &oStat);
-    if (status == -1) {
-	xfce_dialog_show_error (NULL, NULL,
-                  "%s\n"
-		  "%s: %s (%d)",
-		  PLUGIN_NAME, pcDevice, strerror (errno), errno);
-	return;
-    }
     poConf->st_rdev = oStat.st_rdev;
 #endif
     memset (poConf->acDevice, 0, sizeof (poConf->acDevice));


More information about the Xfce4-commits mailing list