commit 6306cd4d4fc1c1ba98b39a73c1572c6ef79a2338 Author: Harald Judt Date: Tue Apr 24 19:58:31 2012 +0200 Do not display an error message for a device in the configuration dialog. 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. diff --git a/panel-plugin/main.c b/panel-plugin/main.c index 05ce707..70f7a6c 100644 --- a/panel-plugin/main.c +++ b/panel-plugin/main.c @@ -643,13 +643,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));