Bug 179416 - folders can't be unshared after being shared in dolphin
Summary: folders can't be unshared after being shared in dolphin
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: David Faure
Depends on:
Reported: 2009-01-02 21:58 UTC by Nicolas L.
Modified: 2009-01-05 20:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas L. 2009-01-02 21:58:43 UTC
Version:            (using Devel)
Installed from:    Compiled sources

when you try to unshare a folder shared by dolphin you can't. The option checked is always "Not shared"

Looking debug it appears 

dolphin(13034)/kio KFileShare::readShareList: Shared dir: "/home/test/fileshare

This patch fixes the issue. 

Index: kio/kio/kfileshare.cpp
--- kio/kio/kfileshare.cpp      (revision 903556)
+++ kio/kio/kfileshare.cpp      (working copy)
@@ -200,7 +200,7 @@

     // Reading code shamelessly stolen from khostname.cpp ;)
     while (!proc.atEnd()) {
-        QString line = proc.readLine();
+        QString line = proc.readLine().trimmed();
         int length = line.length();
        if ( length > 0 )

Can i commit it ?
Comment 1 Nicolas L. 2009-01-05 20:48:11 UTC
SVN commit 906241 by nlecureuil:

Allow to unshare folders

 M  +1 -1      kfileshare.cpp  

WebSVN link: http://websvn.kde.org/?view=rev&revision=906241