[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bbluedevil=5D_src/fileitemactionplugin=3A_Remove_an_?=
From:       Alex Fiestas <afiestas () kde ! org>
Date:       2011-02-20 18:24:57
Message-ID: 20110220182457.7360CA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 3e393f30ab518ee6d1cef7b5fc3388f5342ce1d9 by Alex Fiestas.
Committed on 20/02/2011 at 19:24.
Pushed by afiestas into branch 'master'.

Remove an extra space which result in a crash

If we decide to make sendfile public api, we will need to handle
this in a better way by adding some trimming.

M  +3    -3    src/fileitemactionplugin/sendfileitemaction.cpp     

http://commits.kde.org/bluedevil/3e393f30ab518ee6d1cef7b5fc3388f5342ce1d9

diff --git a/src/fileitemactionplugin/sendfileitemaction.cpp \
b/src/fileitemactionplugin/sendfileitemaction.cpp index cb5ccec..e551f14 100644
--- a/src/fileitemactionplugin/sendfileitemaction.cpp
+++ b/src/fileitemactionplugin/sendfileitemaction.cpp
@@ -51,7 +51,7 @@ QList< QAction* > SendFileItemAction::actions(const \
KFileItemListProperties& fil  
     SendFileItemAction *hack = const_cast<SendFileItemAction*>(this);
     hack->m_fileItemInfos = fileItemInfos;
-    
+
     //If there is no adaptor, there is no bluetooth
     if (!Manager::self()->defaultAdapter()) {
         return list;
@@ -92,11 +92,11 @@ QList< QAction* > SendFileItemAction::actions(const \
KFileItemListProperties& fil  void SendFileItemAction::deviceTriggered()
 {
     QStringList args;
-    args.append("-u " + static_cast<QAction *>(sender())->data().toString());
+    args.append("-u" + static_cast<QAction *>(sender())->data().toString());
 
     KUrl::List fileList =  m_fileItemInfos.urlList();
     Q_FOREACH(const KUrl &url,  fileList) {
-        args.append("-f " + url.path());
+        args.append("-f" + url.path());
     }
     kDebug() << args;
     KProcess process;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic