mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-30 23:49:32 +02:00
Merge RDCart::setYear fix.
This commit is contained in:
parent
c399a04bd8
commit
5f5d3dbe79
@ -253,7 +253,12 @@ int RDCart::year() const
|
|||||||
|
|
||||||
void RDCart::setYear(int year)
|
void RDCart::setYear(int year)
|
||||||
{
|
{
|
||||||
SetRow("YEAR",QString().sprintf("%04d-01-01",year));
|
if((year>0)&&(year<10000)) {
|
||||||
|
SetRow("YEAR",QString().sprintf("%04d-01-01",year));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
SetRow("YEAR");
|
||||||
|
}
|
||||||
metadata_changed=true;
|
metadata_changed=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user