summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-08-19 19:36:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-08-19 19:36:00 +0900
commit1396eea8a5b6bdbb3d49819ea8ba108f5d0a5e04 (patch)
treeb68b36fbab0dd99cd660d860e92a1d49f5884670 /filesharing/advanced/kcm_sambaconf
parent42069cbc2928c7f162235113a0db08622b088503 (diff)
downloadtdenetwork-1396eea8a5b6bdbb3d49819ea8ba108f5d0a5e04.tar.gz
tdenetwork-1396eea8a5b6bdbb3d49819ea8ba108f5d0a5e04.zip
Fixed warning message when launching 'tdecmshell kcmsambaconf'. This resolves bug 1887.
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf')
-rw-r--r--filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp b/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp
index cc6e6a18..cf91918f 100644
--- a/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp
+++ b/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp
@@ -83,7 +83,7 @@ SambaUserList SmbPasswdFile::getSambaUserList()
SambaUserList list;
- if ( f.open(IO_ReadOnly) )
+ if ( f.exists() && f.open(IO_ReadOnly) )
{
TQTextStream t( &f );
TQString s;