forked from qt-creator/qt-creator
Valgrind: Prevent invalid assertion.
Change-Id: I91748fd4ac43e9e00c0859209dbf39d10746b958 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -198,6 +198,8 @@ static QString relativeToPath()
|
||||
static QString errorLocation(const QModelIndex &index, const Error &error,
|
||||
bool link = false, const QString &linkAttr = QString())
|
||||
{
|
||||
if (!index.isValid())
|
||||
return QString();
|
||||
const ErrorListModel *model = 0;
|
||||
const QAbstractProxyModel *proxy = qobject_cast<const QAbstractProxyModel *>(index.model());
|
||||
while (!model && proxy) {
|
||||
|
||||
Reference in New Issue
Block a user