forked from qt-creator/qt-creator
More useful warning text
Change-Id: I6e84b3da2f97863a144e95bf0e79a4318ef59986 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -239,7 +239,8 @@ void ActionContainerPrivate::addAction(Command *command, const QString &groupId)
|
||||
actualGroupId = groupId;
|
||||
|
||||
QList<Group>::const_iterator groupIt = findGroup(actualGroupId);
|
||||
QTC_ASSERT(groupIt != m_groups.constEnd(), return);
|
||||
QTC_ASSERT(groupIt != m_groups.constEnd(), qDebug() << "Can't find group" << groupId
|
||||
<< "in container" << id(); return);
|
||||
QAction *beforeAction = insertLocation(groupIt);
|
||||
m_groups[groupIt-m_groups.constBegin()].items.append(command);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user