Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
kdebluetooth4
r1018677.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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")) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor