[nautilus] Bug 703233 - When you drag a file in nautilus, it updates page
- From: Nelson Benítez León <nbenitez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Bug 703233 - When you drag a file in nautilus, it updates page
- Date: Tue, 30 Jul 2013 21:10:55 +0000 (UTC)
commit e2b480650faf3a8aca06cafc791273aff21f61d6
Author: Nelson Benitez Leon <nbenitezl gmail com>
Date: Mon Jul 29 10:49:08 2013 +0200
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>
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 05f4a85..c50c465 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]