mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-14 08:35:48 +01:00
2016-07-22 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'utils/rdclilogedit/operations.cpp' that caused spurious 'no such service' errors when using the 'setservice' command on new logs.
This commit is contained in:
@@ -15385,3 +15385,7 @@
|
|||||||
2016-07-22 Fred Gleason <fredg@paravelsystems.com>
|
2016-07-22 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Added support for using the ';' character as the command separator
|
* Added support for using the ';' character as the command separator
|
||||||
for rdclilogedit(1).
|
for rdclilogedit(1).
|
||||||
|
2016-07-22 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a bug in 'utils/rdclilogedit/operations.cpp' that caused
|
||||||
|
spurious 'no such service' errors when using the 'setservice'
|
||||||
|
command on new logs.
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include <rdconf.h>
|
#include <rdconf.h>
|
||||||
#include <rdcreate_log.h>
|
#include <rdcreate_log.h>
|
||||||
#include <rdescape_string.h>
|
#include <rdescape_string.h>
|
||||||
|
#include <rdsvc.h>
|
||||||
|
|
||||||
#include "rdclilogedit.h"
|
#include "rdclilogedit.h"
|
||||||
|
|
||||||
@@ -453,8 +454,8 @@ void MainObject::Setpurgedate(const QDate &date)
|
|||||||
|
|
||||||
void MainObject::Setservice(const QString &str)
|
void MainObject::Setservice(const QString &str)
|
||||||
{
|
{
|
||||||
RDLog *log=new RDLog(str);
|
RDSvc *svc=new RDSvc(str);
|
||||||
if(log->exists()) {
|
if(svc->exists()) {
|
||||||
edit_service=str;
|
edit_service=str;
|
||||||
edit_modified=true;
|
edit_modified=true;
|
||||||
}
|
}
|
||||||
@@ -462,7 +463,7 @@ void MainObject::Setservice(const QString &str)
|
|||||||
fprintf(stderr,"setservice: no such service\n");
|
fprintf(stderr,"setservice: no such service\n");
|
||||||
fprintf(stderr,"(Do \"listservices\" for a list\n");
|
fprintf(stderr,"(Do \"listservices\" for a list\n");
|
||||||
}
|
}
|
||||||
delete log;
|
delete svc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user