mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
Update pieces label on source change even if piece size doesn't change (#6516)
Label update is made when slider changes its value, and on source change slider value is being set to a newly calculated, but not necessarily different from the previous one, value. This means that the slider change signal may not be emitted, in which case label continues to show previous text, including "No source selected", which is misleading.
This commit is contained in:
+3
-5
@@ -223,11 +223,9 @@ void MakeDialog::onSourceChanged()
|
||||
builder_.emplace(filename.toStdString());
|
||||
}
|
||||
|
||||
if (!builder_)
|
||||
{
|
||||
updatePiecesLabel();
|
||||
}
|
||||
else
|
||||
updatePiecesLabel();
|
||||
|
||||
if (builder_)
|
||||
{
|
||||
ui_.pieceSizeSlider->setValue(log2(builder_->piece_size()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user