diff options
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 12f87a217c..28fc43a761 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -1452,6 +1452,9 @@ show_existing_view (EShellView *shell_view, gtk_widget_show (control); } + g_free (priv->uri); + priv->uri = g_strdup (uri); + set_current_notebook_page (shell_view, notebook_page); return TRUE; @@ -1471,6 +1474,9 @@ create_new_view_for_uri (EShellView *shell_view, if (control == NULL) return FALSE; + g_free (priv->uri); + priv->uri = g_strdup (uri); + gtk_widget_show (control); gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), control, NULL); @@ -1532,9 +1538,6 @@ e_shell_view_display_uri (EShellView *shell_view, goto end; } - g_free (priv->uri); - priv->uri = g_strdup (uri); - retval = TRUE; end: |