[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sysadmin/kiosktool
From: Luboš Luňák <l.lunak () kde ! org>
Date: 2010-03-11 22:46:06
Message-ID: 1268347566.129547.17449.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1102156 by lunakl:
Use KIO::file_copy() instead of KIO::copy() - the sooner can set permissions
directly and it also actually obeys KIO::Overwrite.
M +3 -8 kioskrun.cpp
--- trunk/extragear/sysadmin/kiosktool/kioskrun.cpp #1102155:1102156
@@ -967,17 +967,12 @@
KUrl src;
src.setPath(file);
- KIO::CopyJob *result = KIO::copy(src, dest, KIO::Overwrite|KIO::HideProgressInfo );
+ KIO::FileCopyJob *result = KIO::file_copy(src, dest, 0644, KIO::Overwrite|KIO::HideProgressInfo );
result->ui()->setWindow( m_mainWidget );
if (result->exec() == true)
{
- KIO::SimpleJob* chmodJob = KIO::chmod(dest, 0644);
- chmodJob->ui()->setWindow( m_mainWidget );
- if(chmodJob->exec())
- {
- ::unlink(QFile::encodeName(file));
- return true;
- }
+ ::unlink(QFile::encodeName(file));
+ return true;
}
return false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic