Use a queued connection to avoid crashes when a conflic arises

The problem seems to be that the delegate gets messed because the message box is displayed from the commitData signal.
This commit is contained in:
Luis Ángel San Martín Rodríguez 2024-12-11 18:29:15 +01:00
parent 1c9f2133f6
commit 96a45974be

View File

@ -61,7 +61,7 @@ EditShortcutsDialog::EditShortcutsDialog(QWidget *parent)
connect(resetButton, &QAbstractButton::clicked, this, &EditShortcutsDialog::resetToDefaults);
connect(actionsGroupsListView->selectionModel(), &QItemSelectionModel::currentChanged, this, &EditShortcutsDialog::loadShortcuts); // clicked(QModelIndex) doesn't work :S
connect(actionsModel, &ActionsShortcutsModel::conflict, this, &EditShortcutsDialog::processConflict);
connect(actionsModel, &ActionsShortcutsModel::conflict, this, &EditShortcutsDialog::processConflict, Qt::QueuedConnection);
#ifdef Y_MAC_UI
setFixedSize(760, 500);