From 04ca717977f37ab0c3da5bd5d7b5524e69eb4abe Mon Sep 17 00:00:00 2001 From: Alexander Batischev Date: Mon, 4 Sep 2017 22:59:45 +0300 Subject: Revert "intercept browser's failure (issue #448) (#592)" This reverts commit e0f91006378a45c8ae1c9c89572fecf23f91af37. --- src/view.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/view.cpp') diff --git a/src/view.cpp b/src/view.cpp index 1ae5c0b9..8745c52d 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -336,7 +336,7 @@ void view::open_in_pager(const std::string& filename) { pop_current_formaction(); } -bool view::open_in_browser(const std::string& url) { +void view::open_in_browser(const std::string& url) { formaction_stack.push_back(std::shared_ptr()); current_formaction = formaction_stack_size() - 1; std::string cmdline; @@ -359,14 +359,8 @@ bool view::open_in_browser(const std::string& url) { cmdline.append("'"); } stfl::reset(); - int browser_exit_code = utils::run_interactively(cmdline, "view::open_in_browser"); - if (browser_exit_code != 0) { - LOG(level::DEBUG, "utils::run_interactively: " - "Starting the browser failed with error code %d - command was %s", browser_exit_code, cmdline); - } + utils::run_interactively(cmdline, "view::open_in_browser"); pop_current_formaction(); - - return browser_exit_code == 0; } void view::update_visible_feeds(std::vector> feeds) { -- cgit v1.2.3