mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 11:26:59 +03:00
GH-2101 fix enter and double click activation of instances
This commit is contained in:
parent
c214c13fb3
commit
74c598d756
2 changed files with 7 additions and 1 deletions
|
|
@ -417,6 +417,12 @@ void GroupView::mouseDoubleClickEvent(QMouseEvent *event)
|
|||
// signal handlers may change the model
|
||||
QPersistentModelIndex persistent = index;
|
||||
emit doubleClicked(persistent);
|
||||
|
||||
QStyleOptionViewItem option = viewOptions();
|
||||
if ((model()->flags(index) & Qt::ItemIsEnabled) && !style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick, &option, this))
|
||||
{
|
||||
emit activated(index);
|
||||
}
|
||||
}
|
||||
|
||||
void GroupView::paintEvent(QPaintEvent *event)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue