Skip to content

Commit

Permalink
Minor smart playlist UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdmdm authored and hatstand committed May 27, 2020
1 parent 0555cf5 commit f90babe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/smartplaylists/querysortpage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="margin">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
Expand Down Expand Up @@ -82,6 +91,12 @@
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="limit_value">
<property name="minimumSize">
<size>
<width>150</width>
<height>0</height>
</size>
</property>
<property name="suffix">
<string> songs</string>
</property>
Expand Down
3 changes: 3 additions & 0 deletions src/smartplaylists/wizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ void Wizard::SetGenerator(GeneratorPtr gen) {
// Set the name
finish_page_->ui_->name->setText(gen->name());
finish_page_->ui_->dynamic->setChecked(gen->is_dynamic());
if (!gen->name().isEmpty()) {
setWindowTitle(windowTitle() + " - " + gen->name());
}

if (type_index_ == -1) {
qLog(Error) << "Plugin was not found for generator type" << gen->type();
Expand Down

0 comments on commit f90babe

Please sign in to comment.