[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdelibs/KDE/4.8] kio/kfile: fix configuration of file associations using full paths
From: Patrick Spendrin <ps_ml () gmx ! de>
Date: 2012-03-01 1:03:32
Message-ID: 20120301010332.28A93A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit f7afd61f07a26085f4683977009840291ddf336e by Patrick Spendrin.
Committed on 01/03/2012 at 01:59.
Pushed by sengels into branch 'KDE/4.8'.
fix configuration of file associations using full paths
this doesn't fix yet that spaces should be handled correctly.
BUG:183153
M +4 -0 kio/kfile/kopenwithdialog.cpp
http://commits.kde.org/kdelibs/f7afd61f07a26085f4683977009840291ddf336e
diff --git a/kio/kfile/kopenwithdialog.cpp b/kio/kfile/kopenwithdialog.cpp
index d82f3bb..42d5d82 100644
--- a/kio/kfile/kopenwithdialog.cpp
+++ b/kio/kfile/kopenwithdialog.cpp
@@ -900,6 +900,10 @@ bool KOpenWithDialogPrivate::checkAccept()
// If we got here, we can't seem to find a service for what they wanted. \
Create one.
QString menuId;
+#ifdef Q_WS_WIN32
+ // on windows, do not use the complete path, but only the default name.
+ serviceName = QFileInfo(serviceName).fileName();
+#endif
QString newPath = KService::newServicePath(false /* ignored argument */, \
serviceName, &menuId);
kDebug(250) << "Creating new service" << serviceName << "(" << newPath \
<< ")" << "menuId=" << menuId;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic