Fix header context menu items
BUG: 640
This commit is contained in:
@@ -208,6 +208,7 @@ QVariant PlaylistsModel::headerData(int section, Qt::Orientation orientation, in
|
||||
if (Qt::Horizontal==orientation) {
|
||||
switch (role) {
|
||||
case Qt::DisplayRole:
|
||||
case Cantata::Role_ContextMenuText:
|
||||
return headerText(section);
|
||||
case Qt::TextAlignmentRole:
|
||||
return alignments[section];
|
||||
|
||||
@@ -98,6 +98,7 @@ QVariant SearchModel::headerData(int section, Qt::Orientation orientation, int r
|
||||
if (Qt::Horizontal==orientation) {
|
||||
switch (role) {
|
||||
case Qt::DisplayRole:
|
||||
case Cantata::Role_ContextMenuText:
|
||||
return headerText(section);
|
||||
case Qt::TextAlignmentRole:
|
||||
return alignments[section];
|
||||
|
||||
Reference in New Issue
Block a user