Don't offer save profile when double click a category in render widget

CCBUG: 357758
parent a292c235
......@@ -333,6 +333,10 @@ RenderWidget::~RenderWidget()
void RenderWidget::slotEditItem(QTreeWidgetItem *item)
{
if (item->parent() == NULL) {
// This is a top level item - group - don't edit
return;
}
const QString edit = item->data(0, EditableRole).toString();
if (edit.isEmpty() || !edit.endsWith(QLatin1String("customprofiles.xml")))
slotSaveProfile();
......
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