[gnome-documents] lokview: Hack to not crash at start-up
- From: Pranav Kant <pranavk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] lokview: Hack to not crash at start-up
- Date: Wed, 20 Jan 2016 13:43:53 +0000 (UTC)
commit 298a856c5196e6e52bb64e060de232ddb0e8f986
Author: Pranav Kant <pranavk gnome org>
Date: Tue Jan 19 00:28:40 2016 +0530
lokview: Hack to not crash at start-up
LOKDocView's reset_view crashes when no document is loaded. This
hack prevents the crash till this is fixed in the widget.
LibreOffice blocker bug:
https://bugs.documentfoundation.org/show_bug.cgi?id=97235
https://bugzilla.gnome.org/show_bug.cgi?id=753686
src/lokview.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/lokview.js b/src/lokview.js
index c23add9..87b3c14 100644
--- a/src/lokview.js
+++ b/src/lokview.js
@@ -208,7 +208,10 @@ const LOKView = new Lang.Class({
reset: function () {
if (!this.view)
return;
- this.view.reset_view();
+
+ // FIXME: https://bugs.documentfoundation.org/show_bug.cgi?id=97235
+ if (this._doc)
+ this.view.reset_view();
this.set_visible_child_full('view', Gtk.StackTransitionType.NONE);
this._copy.enabled = false;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]