From 3703e58fa89f7644f50426288c4fc8f9325773ce Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Tue, 4 Mar 2003 21:25:36 +0000 Subject: only set current folder when the folder_path is different from the current 2003-03-04 Mike Kestner * e-shell-view.c (update_for_current_uri): only set current folder when the folder_path is different from the current folder. svn path=/trunk/; revision=20152 --- shell/ChangeLog | 5 +++++ shell/e-shell-view.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index f75bee9a96..fcb145e8b2 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2003-03-04 Mike Kestner + + * e-shell-view.c (update_for_current_uri): only set current + folder when the folder_path is different from the current folder. + 2003-03-04 Ettore Perazzoli * e-folder-dnd-bridge.c (find_matching_target_for_drag_context): diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 2583feca65..105430290a 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -1962,6 +1962,7 @@ update_for_current_uri (EShellView *shell_view) EShellViewPrivate *priv; EFolder *folder; const char *path; + const char *curr_path; const char *type; const char *folder_name; char *title; @@ -2015,7 +2016,8 @@ update_for_current_uri (EShellView *shell_view) g_signal_handlers_block_by_func (priv->storage_set_view, G_CALLBACK (folder_selected_cb), shell_view); - if (path != NULL) + curr_path = e_storage_set_view_get_current_folder (priv->storage_set_view); + if (path != NULL && (curr_path == NULL || strcmp(path, curr_path))) e_storage_set_view_set_current_folder (E_STORAGE_SET_VIEW (priv->storage_set_view), path); g_signal_handlers_unblock_by_func (priv->storage_set_view, -- cgit v1.2.3