[nautilus] mime-actions: don't spawn a warning if we have only one application
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] mime-actions: don't spawn a warning if we have only one application
- Date: Wed, 7 Sep 2011 19:52:41 +0000 (UTC)
commit d1bc9311392e243aa5c9af4b80a373b6dd69d741
Author: Sandro Mani <manisandro gmail com>
Date: Wed Sep 7 15:51:05 2011 -0400
mime-actions: don't spawn a warning if we have only one application
Don't show a confirmation dialog when we're opening a number of files
with the same application.
https://bugzilla.gnome.org/show_bug.cgi?id=649811
src/nautilus-mime-actions.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index daf41c8..1358624 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -1773,7 +1773,8 @@ activate_files (ActivateParameters *parameters)
if (open_in_app_uris != NULL &&
(!parameters->user_confirmation ||
- num_files + num_unhandled > SILENT_OPEN_LIMIT)) {
+ num_files + num_unhandled > SILENT_OPEN_LIMIT) &&
+ num_apps > 1) {
GtkDialog *dialog;
char *prompt;
char *detail;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]