Commit 762c0d74 authored by Ragnar Thomsen's avatar Ragnar Thomsen
Browse files

Fix creating archives that dont support compression level

CompressionOptionsWidget needs to return compression level -1 for
archives that dont support compression levels (e.g. uncompressed tars).

Thanks to mvlabat for discovering this bug.
parent d56aabf4
......@@ -71,7 +71,11 @@ CompressionOptions CompressionOptionsWidget::commpressionOptions() const
int CompressionOptionsWidget::compressionLevel() const
return compLevelSlider->value();
if (compLevelSlider->isEnabled()) {
return compLevelSlider->value();
} else {
return -1;
ulong CompressionOptionsWidget::volumeSize() const
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment