diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-06-01 23:18:40 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-06-01 23:19:30 +0800 |
commit | 5fa671c3cfecc23b39b45ab7a8fa4cae0dc23975 (patch) | |
tree | 2f6778db8bc72c6a19233326a2d1fd4bbdc3f87c | |
parent | 52e15e54d2193c23ae60e8be8865d15b6fd79972 (diff) | |
download | gsoc2013-evolution-5fa671c3cfecc23b39b45ab7a8fa4cae0dc23975.tar gsoc2013-evolution-5fa671c3cfecc23b39b45ab7a8fa4cae0dc23975.tar.gz gsoc2013-evolution-5fa671c3cfecc23b39b45ab7a8fa4cae0dc23975.tar.bz2 gsoc2013-evolution-5fa671c3cfecc23b39b45ab7a8fa4cae0dc23975.tar.lz gsoc2013-evolution-5fa671c3cfecc23b39b45ab7a8fa4cae0dc23975.tar.xz gsoc2013-evolution-5fa671c3cfecc23b39b45ab7a8fa4cae0dc23975.tar.zst gsoc2013-evolution-5fa671c3cfecc23b39b45ab7a8fa4cae0dc23975.zip |
Bug 677280 - "Help - Quick Reference" opens multiple PDF documents
(cherry picked from commit 4f636a34c4d8b0e1cce81f1455c197f0f28f9bb6)
-rw-r--r-- | 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 4dc1e1cda9..4af4c699c5 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. */ |