live_edit: template insertion is disabled while in Live Edit mode.

This commit is contained in:
ChunEon Park 2014-08-12 11:55:50 +09:00
parent 8cbb206669
commit 367ddab33a
1 changed files with 6 additions and 0 deletions

View File

@ -155,6 +155,12 @@ ctrl_func(app_data *ad, const char *key)
//Template Code
if (!strcmp(key, "t") || !strcmp(key, "T"))
{
if (config_live_edit_get())
{
stats_info_msg_update("Insertion of template code is disabled "
"while in Live Edit mode");
return ECORE_CALLBACK_DONE;
}
template_insert(ad->ed);
return ECORE_CALLBACK_DONE;
}