Don't try to jump to unresolved included files

It popped up an error saying the file couldn't be found. Better not show
a link at all.
This commit is contained in:
Thorbjørn Lindeijer
2009-03-26 18:04:06 +01:00
parent 145c1fb94d
commit 222b4faba8
2 changed files with 5 additions and 1 deletions

View File

@@ -605,7 +605,7 @@ CPPEditor::Link CPPEditor::findLinkAt(const QTextCursor &cursor,
// Handle include directives
const unsigned lineno = cursor.blockNumber() + 1;
foreach (const Document::Include &incl, doc->includes()) {
if (incl.line() == lineno) {
if (incl.line() == lineno && incl.resolved()) {
link.fileName = incl.fileName();
link.pos = cursor.block().position();
link.length = cursor.block().length();