aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-06-01 23:18:40 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-06-01 23:18:40 +0800
commit4f636a34c4d8b0e1cce81f1455c197f0f28f9bb6 (patch)
treee8b8602cb282589e6d22d306ecd31aaf03a02a81 /shell
parentf7ba41210b205c663338142b634b0c1a7df8a1d8 (diff)
downloadgsoc2013-evolution-4f636a34c4d8b0e1cce81f1455c197f0f28f9bb6.tar.gz
gsoc2013-evolution-4f636a34c4d8b0e1cce81f1455c197f0f28f9bb6.tar.zst
gsoc2013-evolution-4f636a34c4d8b0e1cce81f1455c197f0f28f9bb6.zip
Bug 677280 - "Help - Quick Reference" opens multiple PDF documents
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-window-actions.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index ae4642e205..f2b0ab65c2 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -988,9 +988,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;
@@ -1012,7 +1013,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. */