Fixed a bug in rdlibrary(1) multi-edit where an empty 'Year

Released' field clears the date from selected carts.
This commit is contained in:
Patrick Linstruth
2019-09-09 10:55:27 -07:00
parent e4021df7cb
commit 0b871a2a5a
2 changed files with 6 additions and 1 deletions

View File

@@ -19093,3 +19093,6 @@
* Fixed a regression in rdairplay(1) and rdvairplayd(8) that * Fixed a regression in rdairplay(1) and rdvairplayd(8) that
caused hard timed events with the 'Start Immediately' attribute caused hard timed events with the 'Start Immediately' attribute
to fail to start if one or more other events were playing. to fail to start if one or more other events were playing.
2019-09-09 Patrick Linstruth <patrick@deltecent.com>
* Fixed a bug in rdlibrary(1) multi-edit where an empty 'Year
Released' field clears the date from selected carts.

View File

@@ -949,7 +949,9 @@ void EditCart::okData()
if(!rdcart_controls.title_edit->text().stripWhiteSpace().isEmpty()) { if(!rdcart_controls.title_edit->text().stripWhiteSpace().isEmpty()) {
rdcart_cart_medit->setTitle(rdcart_controls.title_edit->text()); rdcart_cart_medit->setTitle(rdcart_controls.title_edit->text());
} }
rdcart_cart_medit->setYear(rdcart_controls.year_edit->text().toInt()); if(rdcart_controls.year_edit->text().toInt()) {
rdcart_cart_medit->setYear(rdcart_controls.year_edit->text().toInt());
}
if(!rdcart_controls.artist_edit->text().stripWhiteSpace().isEmpty()) { if(!rdcart_controls.artist_edit->text().stripWhiteSpace().isEmpty()) {
rdcart_cart_medit->setArtist(rdcart_controls.artist_edit->text()); rdcart_cart_medit->setArtist(rdcart_controls.artist_edit->text());
} }