summaryrefslogtreecommitdiff
path: root/libre/kile/kile-local-url.patch
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2017-11-12 08:17:22 +0100
committerAndreas Grapentin <andreas@grapentin.org>2017-11-12 08:17:22 +0100
commite5e97dc8417614c01803fd3d58e2f9a8c0dfed2d (patch)
treed222b039201e89672f1fe067ed83923388d35ec2 /libre/kile/kile-local-url.patch
parent79d5ed16e7381a549db18803db703e49b1177594 (diff)
downloadabslibre-e5e97dc8417614c01803fd3d58e2f9a8c0dfed2d.tar.gz
abslibre-e5e97dc8417614c01803fd3d58e2f9a8c0dfed2d.tar.bz2
abslibre-e5e97dc8417614c01803fd3d58e2f9a8c0dfed2d.zip
libre/kile: updated to 2.9.91
Diffstat (limited to 'libre/kile/kile-local-url.patch')
-rw-r--r--libre/kile/kile-local-url.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/libre/kile/kile-local-url.patch b/libre/kile/kile-local-url.patch
new file mode 100644
index 000000000..4d829a640
--- /dev/null
+++ b/libre/kile/kile-local-url.patch
@@ -0,0 +1,22 @@
+diff --git a/src/main.cpp b/src/main.cpp
+index 0e58cfa1..d3e43d10 100644
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -164,7 +164,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
+ kile->openDocument(readDataFromStdin());
+ }
+ else {
+- const QUrl url = QUrl::fromUserInput(argument);
++ const QUrl url = QUrl::fromUserInput(argument, QDir::currentPath(), QUrl::AssumeLocalFile);
+
+ if(isProject(url)) {
+ kile->openProject(url);
+@@ -190,7 +190,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
+ interface->call("openDocument", readDataFromStdin());
+ }
+ else {
+- const QUrl url = QUrl::fromUserInput(argument);
++ const QUrl url = QUrl::fromUserInput(argument, QDir::currentPath(), QUrl::AssumeLocalFile);
+
+ if(isProject(url)) {
+ interface->call("openProject", url.url());