| 42 |
|
|
| 43 |
|
} |
| 44 |
|
|
| 45 |
< |
void backupFile(const QString &file){ |
| 45 |
> |
void backupFile(const QString &file, bool verboseEnabled){ |
| 46 |
|
if(!QFile::exists(file+".bak")){ |
| 47 |
|
if(!Util::backupFile(file)){ |
| 48 |
|
std::cerr << "Couldn't backup file '" << file.toLatin1().constData() << "'. Aborting." << std::endl; |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
else{ |
| 53 |
< |
std::cout << "Backup file '" << file.toLatin1().constData() << "'' already exists. Skipping..." << std::endl; |
| 53 |
> |
if(verboseEnabled){ |
| 54 |
> |
std::cout << "Backup file '" << file.toLatin1().constData() << "'' already exists. Skipping..." << std::endl; |
| 55 |
> |
} |
| 56 |
|
} |
| 57 |
|
} |
| 58 |
|
|