forked from qt-creator/qt-creator
use initializer lists
Change-Id: I82b04601f1db52197b3dc625b6b7e0f143c1c8b6 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -180,7 +180,7 @@ public:
|
||||
bool setData(int column, const QVariant &data, int role) override
|
||||
{
|
||||
if (column == LoadedColumn && role == Qt::CheckStateRole)
|
||||
return m_view->setPluginsEnabled(QSet<PluginSpec *>() << m_spec, data.toBool());
|
||||
return m_view->setPluginsEnabled({m_spec}, data.toBool());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user