diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index 7c9efb5952..f2257b8551 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -11096,7 +11096,7 @@ _set_config (Camera *camera, const char *confname, CameraWidget *window, GPConte ptp_free_devicepropvalue (cursub->type, &propval); } ptp_free_devicepropdesc(&dpd); - if (ret != GP_OK) continue; /* see if we have another match */ + if (ret == GP_OK) continue; /* see if we have another match */ } else { ret = cursub->putfunc (camera, widget, NULL, NULL); }