diff options
author | Debarshi Ray <debarshir@freedesktop.org> | 2016-01-08 18:06:18 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-01-12 08:57:19 +0000 |
commit | 9f6cb113a9a6a55de34bf2fab6da757275ead6ea (patch) | |
tree | 2d90612c448bdeeb0f75aac7533d76efaa5fb403 | |
parent | 4b2007997fd6b061702515e5d708ccbe5f03c161 (diff) |
lokdocview: Fix WARNING when creating an error
A GError needs a valid GQuark as the domain. Passing 0 leads to:
GLib-WARNING **: (gerror.c:408):g_error_new_valist: runtime check
failed: (domain != 0)
Change-Id: I2f252eaa83a1519b5d16c7ba22c8f593732807ca
Reviewed-on: https://gerrit.libreoffice.org/21261
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Pranav Kant <pranavk@gnome.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
(cherry picked from commit 3ba1b60c97b342c13593d37ccf2b97a919808dfc)
Reviewed-on: https://gerrit.libreoffice.org/21384
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index fc58dd433b66..21232df7a933 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -1681,7 +1681,7 @@ openDocumentInThread (gpointer data) if ( !priv->m_pDocument ) { char *pError = priv->m_pOffice->pClass->getError( priv->m_pOffice ); - g_task_return_new_error(task, 0, 0, "%s", pError); + g_task_return_new_error(task, g_quark_from_static_string ("LOK error"), 0, "%s", pError); } else { |