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

@@ -34,6 +34,7 @@
#include "Macro.h"
#include <QByteArray>
#include <QFileInfo>
#include <QList>
#include <QMap>
#include <QSharedPointer>
@@ -199,6 +200,9 @@ public:
unsigned line() const
{ return _line; }
bool resolved() const
{ return QFileInfo(_fileName).isAbsolute(); }
};
class MacroUse: public Block {