summaryrefslogtreecommitdiff
path: root/clock-viewer/src/clock-viewer-widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'clock-viewer/src/clock-viewer-widget.c')
-rwxr-xr-x[-rw-r--r--]clock-viewer/src/clock-viewer-widget.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/clock-viewer/src/clock-viewer-widget.c b/clock-viewer/src/clock-viewer-widget.c
index 724566c..a0fba83 100644..100755
--- a/clock-viewer/src/clock-viewer-widget.c
+++ b/clock-viewer/src/clock-viewer-widget.c
@@ -148,7 +148,12 @@ void clock_viewer_default_widget_init(void *data, Evas_Object *parent, char *clo
evas_object_smart_callback_add(parent, WATCH_SMART_SIGNAL_REMOVED, _watch_removed_cb, NULL);
watch_manager_get_app_control(CLOCK_PACKAGE_NAME, &watch_control);
- app_control_send_launch_request(watch_control, NULL, NULL);
+ int ret = app_control_send_launch_request(watch_control, NULL, NULL);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ _ERR("Failed to launch org.tizen.idle-clock-digital error = %d", ret);
+ app_control_destroy(watch_control);
+ return;
+ }
app_control_destroy(watch_control);
}