Index: sources/device/DeviceController.cpp =================================================================== diff -u -r93315aa549a91c6c0d6973248e9b903df9cc40a2 -rd173768dbbf996543a5d313e7b45bbace90df1c3 --- sources/device/DeviceController.cpp (.../DeviceController.cpp) (revision 93315aa549a91c6c0d6973248e9b903df9cc40a2) +++ sources/device/DeviceController.cpp (.../DeviceController.cpp) (revision d173768dbbf996543a5d313e7b45bbace90df1c3) @@ -1106,9 +1106,9 @@ if ( pendingFiles.count() ) { // the most recent/first log file, to first ask for the current log which has just been saved as pending if ( uploadOldestFirst ) { - _pendingLog = pendingFiles.first().absoluteFilePath(); - } else { _pendingLog = pendingFiles.last().absoluteFilePath(); + } else { + _pendingLog = pendingFiles.first().absoluteFilePath(); } QString message = pendingLog; LOG_DEBUG(message);