From 1396eea8a5b6bdbb3d49819ea8ba108f5d0a5e04 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 19 Aug 2014 19:36:00 +0900 Subject: Fixed warning message when launching 'tdecmshell kcmsambaconf'. This resolves bug 1887. --- filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filesharing') 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; -- cgit v1.2.1