diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2016-07-13 12:18:04 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2016-07-13 12:19:48 +0530 |
commit | a54d466edc456be5dfd5c695c6b99f570e228916 (patch) | |
tree | b4dab481ebf828090a021f61e95bbfc03ed002ea /libreofficekit | |
parent | c9b4e298137ed7c3112de533d44ddf56b1ebca6d (diff) |
lokdocview: This can be fired even without document
... so handle it and avoid the assert
Change-Id: Ib244746fabeaf41b5ca927d94fc4c3bda19bef26
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 34c2cae2880e..613a909f1c0d 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -932,6 +932,11 @@ globalCallback (gpointer pData) g_signal_emit (pCallback->m_pDocView, doc_view_signals[PASSWORD_REQUIRED], 0, pURL, bModify); } break; + case LOK_CALLBACK_ERROR: + { + reportError(pCallback->m_pDocView, pCallback->m_aPayload); + } + break; default: g_assert(false); break; |