aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shell-view.c4
2 files changed, 8 insertions, 1 deletions
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 <mkestner@ximian.com>
+
+ * 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 <ettore@ximian.com>
* 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,