mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-16 04:09:07 +00:00
vfs_dialog: allow to check list items with double-click
This commit is contained in:
parent
ce4edf9cb1
commit
e56bc9d15f
@ -82,6 +82,12 @@ vfs_dialog_path_widget::vfs_dialog_path_widget(const QString& name, const QStrin
|
||||
}
|
||||
});
|
||||
|
||||
connect(m_dir_list, &QListWidget::itemDoubleClicked, this, [](QListWidgetItem* item)
|
||||
{
|
||||
if (!item) return;
|
||||
item->setCheckState(Qt::CheckState::Checked);
|
||||
});
|
||||
|
||||
connect(m_dir_list, &QListWidget::currentRowChanged, this, [this, button_remove_dir](int row)
|
||||
{
|
||||
button_remove_dir->setEnabled(m_dir_list->item(row) && row > 0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user