| Summary: | folders can't be unshared after being shared in dolphin | ||
|---|---|---|---|
| Product: | [Unmaintained] kio | Reporter: | Nicolas L. <kde> |
| Component: | general | Assignee: | David Faure <faure> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | faure |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Mandriva RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
SVN commit 906241 by nlecureuil: Allow to unshare folders BUG:179416 M +1 -1 kfileshare.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=906241 |
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 ?