| 261 | } |
| 262 | |
| 263 | void Log::backupLastLog() |
| 264 | { |
| 265 | QFile file(path()); |
| 266 | QFile oldFile(pathOld()); |
| 267 | |
| 268 | if (file.exists()) |
| 269 | { |
| 270 | if(oldFile.exists()) |
| 271 | { |
| 272 | oldFile.remove(); |
| 273 | } |
| 274 | |
| 275 | file.copy(pathOld()); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | QString Log::path() |
| 280 | { |