From 701d540793c71a36d62e75e170c00ef6204766a7 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 26 Aug 2010 12:27:16 +0200 Subject: 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 --- src/plugins/projectexplorer/showineditortaskhandler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/projectexplorer/showineditortaskhandler.cpp') 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(); } -- cgit v1.2.1