[epiphany] ephy-window: do not copy history for new empty tabs



commit f5b82def7c14945d21e1ceb606e09a7ae6806779
Author: Xan Lopez <xan igalia com>
Date:   Wed Aug 1 16:59:27 2012 +0200

    ephy-window: do not copy history for new empty tabs
    
    Do not copy the tab history when doing Ctrl+T/New Tab to open an empty
    tab.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=651918
    
    Signed-off-by: Xan Lopez <xan igalia com>

 src/ephy-window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index e5e9c04..10bff56 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -581,7 +581,11 @@ ephy_window_open_link (EphyLink *link,
 			ntflags |= EPHY_NEW_TAB_APPEND_AFTER;
 
 		if (flags & EPHY_LINK_HOME_PAGE)
+		{
 			ntflags |= EPHY_NEW_TAB_HOME_PAGE;
+			if (flags & EPHY_LINK_NEW_TAB)
+				ntflags |= EPHY_NEW_TAB_DONT_COPY_HISTORY;
+		}
 
 		new_embed = ephy_shell_new_tab
 				(ephy_shell,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]