- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
P2: Important
 - 
    None
 - 
    QDS 4.1
 - 
    None
 
- 
        4f11fae46 (qds/dev), e442eb9e4 (qds/4.1)
 - 
        QDS Oulu - 2023 Week 17/18, QDS Oulu - 2023 Week 19/20
 
            qint64 currentSize = m_bytesBefore
                                 - QStorageInfo(m_targetPath.toFileInfo().dir()).bytesAvailable();
            // We can not get the uncompressed size of the archive yet, that is why we use an
            // approximation. We assume a 50% compression rate.
            int progress = std::min(100ll, currentSize * 100 / m_compressedSize * 2);
            if (progress >= 0) {
                m_progress = progress;
                emit progressChanged();
            } else {
                qWarning() << "FileExtractor has got negative progress. Likely due to QStorageInfo.";
the calculation of the progress line can crash