1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-15 10:14:43 +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 { else {
sort_ui_->field->setChecked(true); sort_ui_->field->setChecked(true);
sort_ui_->order->setCurrentIndex( sort_ui_->order->setCurrentIndex(search.sort_type_ == SmartPlaylistSearch::Sort_FieldAsc ? 0 : 1);
search.sort_type_ == SmartPlaylistSearch::Sort_FieldAsc ? 0 : 1);
sort_ui_->field_value->setCurrentIndex(search.sort_field_); sort_ui_->field_value->setCurrentIndex(search.sort_field_);
} }
@ -308,10 +307,12 @@ SmartPlaylistSearch SmartPlaylistQueryWizardPlugin::MakeSearch() const {
} }
// Limit // Limit
if (sort_ui_->limit_none->isChecked()) if (sort_ui_->limit_none->isChecked()) {
ret.limit_ = -1; ret.limit_ = -1;
else }
else {
ret.limit_ = sort_ui_->limit_value->value(); ret.limit_ = sort_ui_->limit_value->value();
}
return ret; return ret;