If the short name is empty use the long name instead
Change-Id: Id7f6bd3fa54a9801c0f93e510ae6f723241185e4
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
manifest->uiapplication->appid = strdup(data->id);
manifest->uiapplication->type = strdup("webapp");
- manifest->uiapplication->label->name = strdup(data->short_name);
+
+ // For wgt package use the long name if the short name is emty
+ if ( ( data->short_name ) && ( strlen(data->short_name) ) )
+ manifest->uiapplication->label->name = strdup(data->short_name);
+ else
+ manifest->uiapplication->label->name = strdup(data->name);
+
manifest->uiapplication->icon->name = strdup(data->icon);
manifest->uiapplication->next = nullptr;