Fix cpn mix list highlight
This commit is contained in:
@@ -355,7 +355,7 @@ void MixesPanel::mixersDuplicate()
|
|||||||
void MixesPanel::mixerOpen()
|
void MixesPanel::mixerOpen()
|
||||||
{
|
{
|
||||||
QListWidgetItem *item = mixersListWidget->currentItem();
|
QListWidgetItem *item = mixersListWidget->currentItem();
|
||||||
if (item == nullptr)
|
if (item == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int idx = item->data(Qt::UserRole).toByteArray().at(0);
|
int idx = item->data(Qt::UserRole).toByteArray().at(0);
|
||||||
@@ -376,7 +376,7 @@ void MixesPanel::mixerOpen()
|
|||||||
void MixesPanel::mixerHighlight()
|
void MixesPanel::mixerHighlight()
|
||||||
{
|
{
|
||||||
QListWidgetItem *item = mixersListWidget->currentItem();
|
QListWidgetItem *item = mixersListWidget->currentItem();
|
||||||
if (item == nullptr)
|
if (item == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int idx = item->data(Qt::UserRole).toByteArray().at(0);
|
int idx = item->data(Qt::UserRole).toByteArray().at(0);
|
||||||
@@ -389,10 +389,7 @@ void MixesPanel::mixerHighlight()
|
|||||||
}
|
}
|
||||||
highlightedSource = ( (int)highlightedSource == dest) ? 0 : dest;
|
highlightedSource = ( (int)highlightedSource == dest) ? 0 : dest;
|
||||||
// qDebug() << "MixesPanel::mixerHighlight(): " << highlightedSource ;
|
// qDebug() << "MixesPanel::mixerHighlight(): " << highlightedSource ;
|
||||||
for(int i=0; i<mixersListWidget->count(); i++) {
|
update();
|
||||||
int t = mixersListWidget->item(i)->data(Qt::UserRole).toByteArray().at(0);
|
|
||||||
mixersListWidget->item(i)->setText(getMixerText(t, 0));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MixesPanel::mixerAdd()
|
void MixesPanel::mixerAdd()
|
||||||
|
|||||||
Reference in New Issue
Block a user