[Xfce4-commits] <midori:master> close empty tabs when using tab completion
Christian Dywan
noreply at xfce.org
Wed Nov 28 01:34:04 CET 2012
Updating branch refs/heads/master
to 734943801d52333349ec596d5bb65266de9b0138 (commit)
from 4a2e1714423640e27fb38d7c24b958d25271221e (commit)
commit 734943801d52333349ec596d5bb65266de9b0138
Author: André Stösel <andre at stoesel.de>
Date: Tue Nov 27 13:43:46 2012 +0100
close empty tabs when using tab completion
midori/midori-browser.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index c4ca1b0..b88fb50 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -3866,7 +3866,10 @@ _action_location_submit_uri (GtkAction* action,
if (found != NULL && !new_tab
&& !g_str_equal (midori_browser_get_current_uri (browser), uri))
{
+ GtkWidget* view = midori_browser_get_current_tab (browser);
midori_browser_set_current_item (browser, found);
+ if (midori_view_is_blank (MIDORI_VIEW (view)))
+ midori_browser_close_tab (browser, view);
return;
}
More information about the Xfce4-commits
mailing list