mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-15 17:12:36 +02:00
2020-08-28 Fred Gleason <fredg@paravelsystems.com>
* Added sanity checks for Air and Expiration datetimes to the 'Editing Item' dialog in rdcastmanager(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
9711c4394f
commit
b2809f6aca
@ -20274,3 +20274,6 @@
|
||||
2020-08-19 David Klann <dklann@linux.com>
|
||||
* Added support for FTPS protocol for uploading, downloading, and
|
||||
Feed management.
|
||||
2020-08-28 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added sanity checks for Air and Expiration datetimes to the
|
||||
'Editing Item' dialog in rdcastmanager(1).
|
||||
|
@ -334,6 +334,23 @@ void EditCast::okData()
|
||||
{
|
||||
QString err_msg;
|
||||
|
||||
//
|
||||
// Sanity Checks
|
||||
//
|
||||
if(cast_item_expiration_box->currentItem()) {
|
||||
if(cast_item_effective_edit->dateTime()>
|
||||
cast_item_expiration_edit->dateTime()) {
|
||||
QMessageBox::warning(this,"RDCastManager - "+tr("Error"),
|
||||
tr("Item expiration cannot be prior to Air Date/Time!"));
|
||||
return;
|
||||
}
|
||||
if(cast_item_expiration_edit->dateTime()<QDateTime::currentDateTime()) {
|
||||
QMessageBox::warning(this,"RDCastManager - "+tr("Error"),
|
||||
tr("Item expiration must be in the future!"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
cast_cast->setItemTitle(cast_item_title_edit->text());
|
||||
cast_cast->setItemAuthor(cast_item_author_edit->text());
|
||||
cast_cast->setItemCategory(cast_item_category_edit->text());
|
||||
|
@ -141,6 +141,18 @@ dílu</translation>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration cannot be prior to Air Date/Time!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration must be in the future!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
|
@ -137,6 +137,18 @@
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration cannot be prior to Air Date/Time!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration must be in the future!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
|
@ -137,6 +137,18 @@ Episodios</translation>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration cannot be prior to Air Date/Time!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration must be in the future!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
|
@ -87,6 +87,18 @@
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration cannot be prior to Air Date/Time!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration must be in the future!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
|
@ -133,6 +133,18 @@
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration cannot be prior to Air Date/Time!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration must be in the future!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
|
@ -133,6 +133,18 @@
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration cannot be prior to Air Date/Time!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration must be in the future!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
|
@ -137,6 +137,18 @@ Episódio</translation>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration cannot be prior to Air Date/Time!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item expiration must be in the future!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
|
Loading…
x
Reference in New Issue
Block a user