mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-15 02:11:35 +01:00
Formatting
This commit is contained in:
parent
6cd7bcdae6
commit
ffa2489998
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user