summaryrefslogtreecommitdiffstats
path: root/kde/patch/kate
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-12-17 16:29:42 +0100
committer Eric Hameleers <alien@slackware.com>2015-12-17 16:29:42 +0100
commite73351b832cf819fe7018de268d42b6b065a21b6 (patch)
treebb2ea1ab3ec65913b46a98178161a948590bdc08 /kde/patch/kate
parentd1b626b81c84c81ee9d64f28f19719c3fceed066 (diff)
downloadktown-e73351b832cf819fe7018de268d42b6b065a21b6.tar.gz
ktown-e73351b832cf819fe7018de268d42b6b065a21b6.tar.xz
Patch for kate - openning and closing files.
Diffstat (limited to 'kde/patch/kate')
-rw-r--r--kde/patch/kate/kate-15.12.0.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/kde/patch/kate/kate-15.12.0.patch b/kde/patch/kate/kate-15.12.0.patch
new file mode 100644
index 0000000..25067f4
--- /dev/null
+++ b/kde/patch/kate/kate-15.12.0.patch
@@ -0,0 +1,31 @@
+From: Michal Humpula <michal.humpula@hudrydum.cz>
+Date: Sun, 29 Nov 2015 10:24:42 +0000
+Subject: fix opening new files trough dbus
+X-Git-Url: http://quickgit.kde.org/?p=kate.git&a=commitdiff&h=d61b121264d7b43d41c1c6417a18bbfb9078eb9d
+---
+fix opening new files trough dbus
+
+REVIEW: 126197
+---
+
+
+--- a/urlinfo.h
++++ b/urlinfo.h
+@@ -33,7 +33,7 @@
+ : cursor(KTextEditor::Cursor::invalid())
+ {
+ // convert to an url
+- const QRegularExpression withProtocol(QStringLiteral("^[a-zA-Z]+:")); // TODO: remove after Qt supports this on its own
++ const QRegularExpression withProtocol(QStringLiteral("^[a-zA-Z]+://")); // TODO: remove after Qt supports this on its own
+ if (withProtocol.match(path).hasMatch()) {
+ url = QUrl::fromUserInput(path);
+ } else {
+@@ -50,7 +50,7 @@
+ int line = match.captured(1).toInt() - 1;
+ // don't use an invalid column when the line is valid
+ int column = qMax(0, match.captured(2).toInt() - 1);
+- url = QUrl::fromLocalFile(path);
++ url = QUrl::fromLocalFile(QDir::current().absoluteFilePath(path));
+ cursor = {line, column};
+ }
+ }