From: Sung-jae Park Date: Thu, 28 Nov 2013 11:37:18 +0000 (+0900) Subject: If the box is deleted while creating, and the delete reason is SUCCESS, change it... X-Git-Tag: accepted/tizen/generic/20140226.073644~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=166ecd973629fd40c2daac56f5f7f48ac6da80fe;p=platform%2Fframework%2Fweb%2Flivebox-viewer.git If the box is deleted while creating, and the delete reason is SUCCESS, change it to CANCEL. To handles it correctly by the client. Change-Id: I568b7d7ebd0f1bc37d34e557cc0f222fb9b9da7c --- diff --git a/packaging/liblivebox-viewer.spec b/packaging/liblivebox-viewer.spec index 8c8143a..e8376e5 100644 --- a/packaging/liblivebox-viewer.spec +++ b/packaging/liblivebox-viewer.spec @@ -1,6 +1,6 @@ Name: liblivebox-viewer Summary: Library for developing the application -Version: 0.14.7 +Version: 0.14.8 Release: 1 Group: HomeTF/Livebox License: Flora diff --git a/src/client.c b/src/client.c index 8866148..6d7d011 100644 --- a/src/client.c +++ b/src/client.c @@ -220,6 +220,9 @@ static struct packet *master_deleted(pid_t pid, int handle, const struct packet handler->created_cb = NULL; handler->created_cbdata = NULL; + if (reason == LB_STATUS_SUCCESS) { + reason = LB_STATUS_ERROR_CANCEL; + } cb(handler, reason, cbdata); } else if (handler->id) { if (handler->deleted_cb) {