From 96a45974be2d751b7c8f0d665d4152cce1c3061c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20A=CC=81ngel=20San=20Marti=CC=81n=20Rodri=CC=81guez?= Date: Wed, 11 Dec 2024 18:29:15 +0100 Subject: [PATCH] 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. --- shortcuts_management/edit_shortcuts_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcuts_management/edit_shortcuts_dialog.cpp b/shortcuts_management/edit_shortcuts_dialog.cpp index 33ffb3c6..0f9da75f 100644 --- a/shortcuts_management/edit_shortcuts_dialog.cpp +++ b/shortcuts_management/edit_shortcuts_dialog.cpp @@ -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);