summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-12-11 11:01:31 +0100
committerCarlos Soriano <csoriano@gnome.org>2015-12-11 13:43:49 +0100
commit755c7710582eeb1cb34350ce983a6c4e3a451f47 (patch)
treedd4d89f32d2dfeb41ce3440fc153c10e5a338997
parente14c76bea5cce1cf82b1b71dccadabd0ca859cde (diff)
downloadnautilus-755c7710582eeb1cb34350ce983a6c4e3a451f47.tar.gz
nautilus-application: unset slot if new window created
If the new window flag is set, make sure that, whatever the caller pass as target slot, we don't use it. https://bugzilla.gnome.org/show_bug.cgi?id=756499
-rw-r--r--src/nautilus-application.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 812f0e0b1..260d966a6 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -513,6 +513,8 @@ nautilus_application_open_location_full (NautilusApplication *application,
} else {
target_window = nautilus_application_create_window (application,
gtk_window_get_screen (GTK_WINDOW (active_window)));
+ /* Whatever the caller says, the slot won't be the same */
+ target_slot = NULL;
}
g_assert (target_window != NULL);