diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2010-08-26 12:27:16 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-08-26 14:01:40 +0200 |
commit | 701d540793c71a36d62e75e170c00ef6204766a7 (patch) | |
tree | 251aafe80b030747d4cc944310fa2d8c41fc5412 /src/plugins/projectexplorer/showineditortaskhandler.cpp | |
parent | 56e800927e7255f471cb14ebc776a12d3b0f2245 (diff) | |
download | qt-creator-701d540793c71a36d62e75e170c00ef6204766a7.tar.gz |
Add TaskList plugin
This plugin enables loading of .tasks files into the Build Isssue list. This
is really nice if you need to e.g. browse results from static codecheckers
in creator.
Tasks files are simple tab-separated lists of one of the following forms:
description
type\tdesciption
file\ttype\description
file\tline\ttype\tdescription
The strings may contain escape codes:
\n for newline,
\t for tab
and \\ for a backslash
Diffstat (limited to 'src/plugins/projectexplorer/showineditortaskhandler.cpp')
-rw-r--r-- | src/plugins/projectexplorer/showineditortaskhandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/showineditortaskhandler.cpp b/src/plugins/projectexplorer/showineditortaskhandler.cpp index 53c3af1aaa..8783bcd7c0 100644 --- a/src/plugins/projectexplorer/showineditortaskhandler.cpp +++ b/src/plugins/projectexplorer/showineditortaskhandler.cpp @@ -46,6 +46,8 @@ ShowInEditorTaskHandler::ShowInEditorTaskHandler() : bool ShowInEditorTaskHandler::canHandle(const ProjectExplorer::Task &task) { + if (task.file.isEmpty()) + return false; QFileInfo fi(task.file); return fi.exists() && fi.isFile() && fi.isReadable(); } |