forked from qt-creator/qt-creator
allow saved actions with no representaion in the configuration dialog
Useful for simple context menu items.
This commit is contained in:
@@ -421,7 +421,8 @@ void SavedAction::trigger(const QVariant &data)
|
|||||||
void SavedActionSet::insert(SavedAction *action, QWidget *widget)
|
void SavedActionSet::insert(SavedAction *action, QWidget *widget)
|
||||||
{
|
{
|
||||||
m_list.append(action);
|
m_list.append(action);
|
||||||
action->connectWidget(widget);
|
if (widget)
|
||||||
|
action->connectWidget(widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SavedActionSet::apply(QSettings *settings)
|
void SavedActionSet::apply(QSettings *settings)
|
||||||
|
|||||||
Reference in New Issue
Block a user