Commit c2e5c08a authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: PLSelector: Make effectless root entries not selectable

parent 4bdcec38
......@@ -211,6 +211,13 @@ void PLSelector::createItems()
QTreeWidgetItem *lan = addItem( CATEGORY_TYPE, N_("Local Network") )->treeItem();
QTreeWidgetItem *internet = addItem( CATEGORY_TYPE, N_("Internet") )->treeItem();
#define NOT_SELECTABLE(w) w->setFlags( w->flags() ^ Qt::ItemIsSelectable );
NOT_SELECTABLE( mycomp );
NOT_SELECTABLE( devices );
NOT_SELECTABLE( lan );
NOT_SELECTABLE( internet );
#undef NOT_SELECTABLE
/* SD subnodes */
char **ppsz_longnames;
int *p_categories;
......
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