diff options
author | Mike Kestner <mkestner@ximian.com> | 2003-03-05 05:25:36 +0800 |
---|---|---|
committer | Mike Kestner <mkestner@src.gnome.org> | 2003-03-05 05:25:36 +0800 |
commit | 3703e58fa89f7644f50426288c4fc8f9325773ce (patch) | |
tree | 8985f4cf1240bd4f104268f301d8fd0d6d730c8a /shell/e-shell-view.c | |
parent | 6c95c6da0e9d40216e05109b5f4acb92c5ab5256 (diff) | |
download | gsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.tar.gz gsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.tar.zst gsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.zip |
only set current folder when the folder_path is different from the current
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.
svn path=/trunk/; revision=20152
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, |