[evolution/gnome-3-4] Bug 677280 - "Help - Quick Reference" opens multiple PDF documents
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-4] Bug 677280 - "Help - Quick Reference" opens multiple PDF documents
- Date: Fri, 1 Jun 2012 15:19:43 +0000 (UTC)
commit 5fa671c3cfecc23b39b45ab7a8fa4cae0dc23975
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Jun 1 11:18:40 2012 -0400
Bug 677280 - "Help - Quick Reference" opens multiple PDF documents
(cherry picked from commit 4f636a34c4d8b0e1cce81f1455c197f0f28f9bb6)
shell/e-shell-window-actions.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index 4dc1e1c..4af4c69 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -989,9 +989,10 @@ action_quick_reference_cb (GtkAction *action,
EShellWindow *shell_window)
{
const gchar * const *language_names;
+ gboolean app_launched = FALSE;
language_names = g_get_language_names ();
- while (*language_names != NULL) {
+ while (*language_names != NULL && !app_launched) {
const gchar *language = *language_names++;
gchar *filename;
@@ -1013,7 +1014,8 @@ action_quick_reference_cb (GtkAction *action,
file = g_file_new_for_path (filename);
uri = g_file_get_uri (file);
- g_app_info_launch_default_for_uri (uri, NULL, &error);
+ app_launched = g_app_info_launch_default_for_uri (
+ uri, NULL, &error);
if (error != NULL) {
/* FIXME Show an error dialog. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]