[nautilus] application: make sure --no-default-window works when used with an URI
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: make sure --no-default-window works when used with an URI
- Date: Tue, 21 Jun 2011 16:46:19 +0000 (UTC)
commit 6ac24b5381c7a26f85b8c72662c9ac4a54269e26
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jun 21 12:45:38 2011 -0400
application: make sure --no-default-window works when used with an URI
src/nautilus-application.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 2c751a3..5ba95cf 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1024,7 +1024,7 @@ nautilus_application_local_command_line (GApplication *application,
g_strfreev (remaining);
}
- if (files == NULL) {
+ if (files == NULL && !no_default_window) {
files = g_malloc0 (2 * sizeof (GFile *));
len = 1;
@@ -1033,7 +1033,7 @@ nautilus_application_local_command_line (GApplication *application,
}
/* Invoke "Open" to create new windows */
- if (!no_default_window) {
+ if (len > 0) {
g_application_open (application, files, len, "");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]