mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
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:
parent
1c9f2133f6
commit
96a45974be
@ -61,7 +61,7 @@ EditShortcutsDialog::EditShortcutsDialog(QWidget *parent)
|
|||||||
|
|
||||||
connect(resetButton, &QAbstractButton::clicked, this, &EditShortcutsDialog::resetToDefaults);
|
connect(resetButton, &QAbstractButton::clicked, this, &EditShortcutsDialog::resetToDefaults);
|
||||||
connect(actionsGroupsListView->selectionModel(), &QItemSelectionModel::currentChanged, this, &EditShortcutsDialog::loadShortcuts); // clicked(QModelIndex) doesn't work :S
|
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
|
#ifdef Y_MAC_UI
|
||||||
setFixedSize(760, 500);
|
setFixedSize(760, 500);
|
||||||
|
Loading…
Reference in New Issue
Block a user