From 631125c256e44311a594718c915b301419934cd5 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 6 Jun 2016 21:05:32 +0200 Subject: [PATCH] Ninja: warnings and errors from debug build is now clickable --- src/terminal.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/terminal.cc b/src/terminal.cc index edbe55a..38d04e0 100644 --- a/src/terminal.cc +++ b/src/terminal.cc @@ -356,8 +356,11 @@ bool Terminal::on_button_press_event(GdkEventButton* button_event) { auto path=boost::filesystem::path(path_str); boost::system::error_code ec; if(path.is_relative()) { - if(Project::current) + if(Project::current) { path=boost::filesystem::canonical(Project::current->build->get_default_path()/path_str, ec); + if(ec) + path=boost::filesystem::canonical(Project::current->build->get_debug_path()/path_str, ec); + } else return Gtk::TextView::on_button_press_event(button_event); }