diff options
authorAlbert Astals Cid <>2011-08-11 10:46:11 (GMT)
committerAlbert Astals Cid <>2011-08-11 10:47:27 (GMT)
commit75d7cc47fc071f2270492b027c01dcfb28b089b0 (patch)
parentb3dd9ce279f473e4c2fc29fe6ca926e12b0be935 (diff)
Make KSambaSharePrivate::getNetUserShareInfo less noisy
Each time I open a open dialog i get a complain from KSambaSharePrivate::getNetUserShareInfo that says kolourpaint(25821) KSambaSharePrivate::getNetUserShareInfo: We got some errors while running 'net usershare info' kolourpaint(25821) KSambaSharePrivate::getNetUserShareInfo: "net usershare: usershares are currently disabled" With this patch people like me that have never configured that stop receiving the noise on the shell Acked by dfaure REVIEW: 102172
1 files changed, 2 insertions, 0 deletions
diff --git a/kio/kio/ksambashare.cpp b/kio/kio/ksambashare.cpp
index cd878b6..95b6c55 100644
--- a/kio/kio/ksambashare.cpp
+++ b/kio/kio/ksambashare.cpp
@@ -175,6 +175,8 @@ QByteArray KSambaSharePrivate::getNetUserShareInfo()
if (!stdErr.isEmpty()) {
if (stdErr.contains("You do not have permission to create a usershare")) {
skipUserShare = true;
+ } else if (stdErr.contains("usershares are currently disabled")) {
+ skipUserShare = true;
} else {
//TODO: parse and process other error messages.
// create a parser for the error output and