diff options
author | Nelson Benitez Leon <nbenitezl@gmail.com> | 2013-07-29 10:49:08 +0200 |
---|---|---|
committer | Nelson Benítez León <nbenitezl+gnome@gmail.com> | 2013-07-30 23:06:25 +0200 |
commit | e2b480650faf3a8aca06cafc791273aff21f61d6 (patch) | |
tree | 2db848bd8805a26bc4e5660d15126cec1b12b434 | |
parent | 35b76688d9842134ade30579dfa69f62981377d3 (diff) | |
download | nautilus-e2b480650faf3a8aca06cafc791273aff21f61d6.tar.gz |
Bug 703233 - When you drag a file in nautilus, it updates page
Don't call nautilus_window_slot_open_location for the current
location, as it's already opened and causes an unwanted refresh.
Bug was introduced in commit 0d635bda
Signed-off-by: Nelson Benítez León <nbenitezl+gnome@gmail.com>
-rw-r--r-- | src/nautilus-view-dnd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nautilus-view-dnd.c b/src/nautilus-view-dnd.c index 05f4a858e..c50c465d3 100644 --- a/src/nautilus-view-dnd.c +++ b/src/nautilus-view-dnd.c @@ -530,10 +530,14 @@ nautilus_view_handle_hover (NautilusView *view, { NautilusWindowSlot *slot; GFile *location; + GFile *current_location; slot = nautilus_view_get_nautilus_window_slot (view); location = g_file_new_for_uri (target_uri); - nautilus_window_slot_open_location (slot, location, 0); + current_location = nautilus_window_slot_get_location (slot); + if (! (current_location != NULL && g_file_equal(location, current_location))) { + nautilus_window_slot_open_location (slot, location, 0); + } g_object_unref (location); } |