[gnome-documents/wip/lokdocview-rebase: 3/21] lokview: Fix loading files with spaces in their path
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/lokdocview-rebase: 3/21] lokview: Fix loading files with spaces in their path
- Date: Mon, 4 Jan 2016 15:02:04 +0000 (UTC)
commit 5a52eae5ce16b6db2f86df3b5836cc30160d77b3
Author: Bastien Nocera <hadess hadess net>
Date: Fri Dec 4 15:59:20 2015 +0100
lokview: Fix loading files with spaces in their path
src/lokview.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lokview.js b/src/lokview.js
index 394f6a2..697ebe0 100644
--- a/src/lokview.js
+++ b/src/lokview.js
@@ -111,7 +111,7 @@ const LOKView = new Lang.Class({
_onLoadFinished: function(manager, doc, docModel) {
if (docModel == null && doc != null) {
- let location = doc.uri.replace ('file://', '');
+ let [ location, ] = GLib.filename_from_uri (doc.uri);
this._doc = doc;
this.view.open_document(location, null, Lang.bind(this, this.open_document_cb), null);
this._progressBar.show();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]