forked from qt-creator/qt-creator
OutputWindow: Do not activate links for empty reference
Change-Id: I1d4fc0f25f1882a34058c66c51376982cc70238e Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
c7b0940977
commit
6cfd240285
@@ -262,8 +262,11 @@ TaskView::Location TaskView::locationForPos(const QPoint &pos)
|
||||
loc.file = fp;
|
||||
loc.line = line;
|
||||
loc.column = column;
|
||||
});
|
||||
formatter.handleLink(delegate->hrefForPos(pos));
|
||||
});
|
||||
|
||||
const QString href = delegate->hrefForPos(pos);
|
||||
if (!href.isEmpty())
|
||||
formatter.handleLink(href);
|
||||
return loc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user