var prop = (JsRender.NodeProp) ((Gtk.ListItem)listitem).get_item();
if (prop == null || _this.node == null ) {
GLib.error("something is wrong");
- return;
+
}
if ( _this.node.fqn() == "") {
GLib.debug("node is missing fqn");
var pal = _this.file.project.palete;
- string[] opts;
- var has_opts = pal.typeOptions(_this.node.fqn(), prop.name, prop.rtype, out opts);
+ string[] opts = {};
+
+ var has_opts = prop.ptype.can_have_opt_list() ?
+ pal.typeOptions(_this.node.fqn(), prop.name, prop.rtype, out opts)
+ : false;
if (!has_opts && prop.ptype == JsRender.NodePropType.RAW) {
use_textarea = true;