mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
refs #617, fixed assert when there are no selected items
This commit is contained in:
committed by
Mathew Sutcliffe
parent
cf51a7efca
commit
909ea08853
@@ -162,6 +162,7 @@ namespace BlackGui
|
|||||||
void CHotkeyDialog::ps_changeSelectedAction(const QItemSelection &selected, const QItemSelection &deselected)
|
void CHotkeyDialog::ps_changeSelectedAction(const QItemSelection &selected, const QItemSelection &deselected)
|
||||||
{
|
{
|
||||||
Q_UNUSED(deselected);
|
Q_UNUSED(deselected);
|
||||||
|
if (selected.indexes().isEmpty()) { return; }
|
||||||
const auto index = selected.indexes().first();
|
const auto index = selected.indexes().first();
|
||||||
m_actionHotkey.setAction(index.data(Models::CActionModel::ActionRole).toString());
|
m_actionHotkey.setAction(index.data(Models::CActionModel::ActionRole).toString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user