diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2008-02-19 20:16:07 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2008-02-19 20:16:07 +0000 |
commit | 451806403201b49686746f6cf74b8551530d04d9 (patch) | |
tree | 01d5b0ad5b4720329b7c16819869c97a1331ddba | |
parent | bfb05ca749e16b61e4124c61ced79f0531000352 (diff) | |
download | libgphoto2-451806403201b49686746f6cf74b8551530d04d9.tar.gz |
handle widget changed flags better
git-svn-id: https://svn.code.sf.net/p/gphoto/code/branches/libgphoto2-2_4/libgphoto2@10955 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r-- | camlibs/ptp2/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index 1cb21128b..07c8c1457 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -2788,8 +2788,12 @@ camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) if (!gp_widget_changed (widget)) continue; + /* restore the "changed flag" */ + gp_widget_set_changed (widget, TRUE); + gp_log (GP_LOG_DEBUG, "camera_set_config", "Found and setting Property %04x (%s)", cursub->propid, cursub->label); if (have_prop(camera,cursub->vendorid,cursub->propid)) { + gp_widget_changed (widget); /* clear flag */ if (cursub->propid) { PTPDevicePropDesc dpd; @@ -2807,6 +2811,7 @@ camera_set_config (Camera *camera, CameraWidget *window, GPContext *context) if (have_eos_prop(camera,cursub->vendorid,cursub->propid)) { PTPDevicePropDesc dpd; + gp_widget_changed (widget); /* clear flag */ gp_log (GP_LOG_DEBUG, "camera_set_config", "Found and setting EOS Property %04x (%s)", cursub->propid, cursub->label); memset(&dpd,0,sizeof(dpd)); ptp_canon_eos_getdevicepropdesc (&camera->pl->params,cursub->propid, &dpd); |