summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nautilus-application.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 803d181f6..1278b6a3b 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -405,7 +405,7 @@ nautilus_application_open_location_full (NautilusApplication *application,
/* close the current window if the flags say so */
if ((flags & NAUTILUS_WINDOW_OPEN_FLAG_CLOSE_BEHIND) != 0) {
- if (NAUTILUS_IS_DESKTOP_WINDOW (active_window)) {
+ if (!NAUTILUS_IS_DESKTOP_WINDOW (active_window)) {
if (gtk_widget_get_visible (GTK_WIDGET (target_window))) {
nautilus_window_close (active_window);
} else {