mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
2018-11-29 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SERVICES.INCLUDE_IMPORT_MARKERS' field to the database. * Added a 'LOGS.INCLUDE_IMPORT_MARKERS' field to the database. * Incremented the database version to 301. * Added an 'Inlcude Import Markers in Finished Logs' checkbox to the 'Edit Service' dialog in rdadmin(1).
This commit is contained in:
@@ -223,6 +223,18 @@ void RDLog::setCompletedTracks(unsigned tracks) const
|
||||
}
|
||||
|
||||
|
||||
bool RDLog::includeImportMarkers() const
|
||||
{
|
||||
return RDBool(GetStringValue("INCLUDE_IMPORT_MARKERS"));
|
||||
}
|
||||
|
||||
|
||||
void RDLog::setIncludeImportMarkers(bool state)
|
||||
{
|
||||
SetRow("INCLUDE_IMPORT_MARKERS",RDYesNo(state));
|
||||
}
|
||||
|
||||
|
||||
int RDLog::linkQuantity(RDLog::Source src) const
|
||||
{
|
||||
switch(src) {
|
||||
@@ -638,11 +650,9 @@ QString RDLog::GetStringValue(const QString &field) const
|
||||
q=new RDSqlQuery(sql);
|
||||
if(q->first()) {
|
||||
accum=q->value(0).toString();
|
||||
delete q;
|
||||
return accum;
|
||||
}
|
||||
delete q;
|
||||
return 0;
|
||||
return accum;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user