1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 09:44:51 +01:00

Formatting

This commit is contained in:
Jonas Kvinge 2021-06-30 16:14:08 +02:00
parent 6cd7bcdae6
commit ffa2489998

View File

@ -195,8 +195,7 @@ void SmartPlaylistQueryWizardPlugin::SetGenerator(PlaylistGeneratorPtr g) {
}
else {
sort_ui_->field->setChecked(true);
sort_ui_->order->setCurrentIndex(
search.sort_type_ == SmartPlaylistSearch::Sort_FieldAsc ? 0 : 1);
sort_ui_->order->setCurrentIndex(search.sort_type_ == SmartPlaylistSearch::Sort_FieldAsc ? 0 : 1);
sort_ui_->field_value->setCurrentIndex(search.sort_field_);
}
@ -308,10 +307,12 @@ SmartPlaylistSearch SmartPlaylistQueryWizardPlugin::MakeSearch() const {
}
// Limit
if (sort_ui_->limit_none->isChecked())
if (sort_ui_->limit_none->isChecked()) {
ret.limit_ = -1;
else
}
else {
ret.limit_ = sort_ui_->limit_value->value();
}
return ret;