summaryrefslogtreecommitdiff
path: root/src/itemlist_formaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemlist_formaction.cpp')
-rw-r--r--src/itemlist_formaction.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/itemlist_formaction.cpp b/src/itemlist_formaction.cpp
index 06be6e85..8869f315 100644
--- a/src/itemlist_formaction.cpp
+++ b/src/itemlist_formaction.cpp
@@ -85,7 +85,8 @@ void itemlist_formaction::process_operation(operation op, bool automatic, std::v
if (itemposname.length() > 0 && visible_items.size() != 0) {
if (itempos < visible_items.size()) {
- if (!v->open_in_browser(visible_items[itempos].first->link())) {
+ bool browser_success = v->open_in_browser(visible_items[itempos].first->link());
+ if (!browser_success) {
v->show_error(_("Browser failed to open the link!"));
break;
}
@@ -111,9 +112,7 @@ void itemlist_formaction::process_operation(operation op, bool automatic, std::v
LOG(level::INFO, "itemlist_formaction: opening item at pos `%s'", itemposname);
if (itemposname.length() > 0 && visible_items.size() != 0) {
if (itempos < visible_items.size()) {
- if (!v->open_in_browser(visible_items[itempos].first->link()))
- v->show_error(_("Browser failed to open the link!"));
-
+ v->open_in_browser(visible_items[itempos].first->link());
invalidate(itempos);
}
} else {