File r1018677.diff of Package kdebluetooth4

Index: src/trayicon.cpp
===================================================================
--- src/trayicon.cpp	(revision 1018676)
+++ src/trayicon.cpp	(revision 1018677)
@@ -36,6 +36,8 @@
 #include <KIconLoader>
 #include <KIconEffect>
 #include <KTemporaryFile>
+#include <KDirSelectDialog>
+#include <KDialog>
 
 #include "obexserver/obexserversessionfiletransfer.h"
 
@@ -58,9 +60,6 @@
 	setIconByName("kbluetooth4");
 	setToolTip("kbluetooth4", "KBluetooth", "KDE bluetooth framework");
 	setCategory(KNotificationItem::Hardware);
-	 
-	QDir dir(QDir::homePath());
-	dir.mkdir(".kbluetooth4");
 
         QDBusConnection::systemBus().registerObject(agentPath, kapp);
 
@@ -186,7 +185,15 @@
 	confGroup = new KConfigGroup(config, "General");
 	KConfigGroup obexServerConfig(config, "ObexServer");
 	if(!obexServerConfig.hasKey("savePath")) {
-		obexServerConfig.writeEntry("savePath", QDir::homePath() + "/.kbluetooth4");
+		QString saveUrl;
+		KDirSelectDialog dirs;
+		if(dirs.exec() && dirs.url().isValid()) {
+			saveUrl = dirs.url().path();
+		}else{
+			saveUrl = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
+			kDebug() << "\n\n\n\n\n\n\n\n\n\nsaveUr:" << saveUrl;
+		}
+		obexServerConfig.writeEntry("savePath",saveUrl);
 		obexServerConfig.sync();
 	}
 	if(!obexServerConfig.hasKey("Autostart")) {
openSUSE Build Service is sponsored by