Cosmetics

This commit is contained in:
bsongis
2015-01-04 16:18:38 +01:00
parent fb0df7d058
commit 9df46efcd8
2 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ result(true)
bool CopyProcess::run()
{
progress->lock(true);
progress->setInfo(tr("Copying file..."));
// progress->setInfo(tr("Copying file..."));
QEventLoop loop;
connect(this, SIGNAL(finished()), &loop, SLOT(quit()));
@@ -39,7 +39,7 @@ void CopyProcess::onTimer()
if (sourceFile.open(QIODevice::ReadOnly)) {
QFile destinationFile(destination);
if (destinationFile.open(QIODevice::ReadWrite)) {
progress->addText(tr("Writing file: "));
// progress->addText(tr("Writing file: "));
for (int i=0; i<blocks; i++) {
int read = sourceFile.read(buf, BLKSIZE);
if (destinationFile.write(buf, read) == read) {