Commit 4d5d4003 authored by Jabier Arraiza's avatar Jabier Arraiza

Warn if CSS value in stylesheet is wrong

parent 53ec1501
Pipeline #65985127 passed with stage
......@@ -787,7 +787,11 @@ bool StyleDialog::_on_foreach_iter(const Gtk::TreeModel::iterator &iter)
Gtk::TreeModel::Row row = *(iter);
Glib::ustring owner = row[_mColumns._colOwner];
if (owner.empty()) {
Glib::ustring tooltiptext = Glib::ustring(_("Used in ") + _owner_style[row[_mColumns._colName]]);
Glib::ustring value = _owner_style[row[_mColumns._colName]];
Glib::ustring tooltiptext = Glib::ustring(_("Invalid value set"));
if (!value.empty()) {
tooltiptext = Glib::ustring(_("Used in ") + _owner_style[row[_mColumns._colName]]);
}
row[_mColumns._colOwner] = tooltiptext;
}
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment