summaryrefslogtreecommitdiff
path: root/libreofficekit/source
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@freedesktop.org>2016-01-08 18:06:18 +0100
committerjan iversen <jani@documentfoundation.org>2016-01-11 12:30:58 +0000
commit3ba1b60c97b342c13593d37ccf2b97a919808dfc (patch)
tree6ef2ba25c6c2eee6ee07fae96198932dfdfd25dc /libreofficekit/source
parentac1f0b59043a02e4d430cade3cc5b8b069feed87 (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>
Diffstat (limited to 'libreofficekit/source')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 87b6ca06fad2..140479ba138a 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1684,7 +1684,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
{