mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-16 17:41:20 +01:00
2023-06-01 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug that would cause 'failed to load translation file' warnings to be sent to the Apache error log. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -82,7 +82,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,this);
|
||||
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,false,
|
||||
this);
|
||||
if(!rda->open(&err_msg,NULL,false)) {
|
||||
QMessageBox::critical(this,"RDAlsaConfig - "+tr("Error"),err_msg);
|
||||
exit(1);
|
||||
@@ -362,7 +363,8 @@ Autogen::Autogen()
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,this);
|
||||
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,
|
||||
false,this);
|
||||
if(!rda->open(&err_msg,NULL,false)) {
|
||||
fprintf(stderr,"rdalsaconfig: unable to open database [%s]\n",
|
||||
(const char *)err_msg.toUtf8());
|
||||
|
||||
@@ -42,7 +42,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdcheckcuts","rdcheckcuts",RDCHECKCUTS_USAGE,this));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdcheckcuts",
|
||||
"rdcheckcuts",RDCHECKCUTS_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rdcheckcuts: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
|
||||
@@ -48,7 +48,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdclilogedit","rdclilogedit",RDCLILOGEDIT_USAGE,this));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdclilogedit",
|
||||
"rdclilogedit",RDCLILOGEDIT_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rdclilogedit: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
|
||||
@@ -42,7 +42,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdconvert","rdconvert",RDCONVERT_USAGE,this));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdconvert","rdconvert",
|
||||
RDCONVERT_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rdconvert: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
|
||||
@@ -43,7 +43,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rddelete","rddelete",RDDELETE_USAGE,this));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rddelete","rddelete",
|
||||
RDDELETE_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rddelete: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
|
||||
@@ -56,7 +56,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdexport","rdexport",RDEXPORT_USAGE,this));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdexport","rdexport",
|
||||
RDEXPORT_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rdexport: %s\n",(const char *)err_msg.toUtf8());
|
||||
exit(1);
|
||||
|
||||
@@ -38,7 +38,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=new RDApplication("RDGpiMon","rdgpimon",RDGPIMON_USAGE,this);
|
||||
rda=new RDApplication("RDGpiMon","rdgpimon",RDGPIMON_USAGE,true,this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
QMessageBox::critical(this,"RDGpiMon - "+tr("Error"),err_msg);
|
||||
exit(1);
|
||||
|
||||
@@ -108,7 +108,7 @@ MainObject::MainObject(QObject *parent)
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdimport","rdimport",
|
||||
RDIMPORT_USAGE,this));
|
||||
RDIMPORT_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rdimport: %s\n",err_msg.toUtf8().constData());
|
||||
ErrorExit(RDApplication::ExitNoDb);
|
||||
|
||||
@@ -57,7 +57,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmaint","rdmaint",RDMAINT_USAGE,this));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmaint","rdmaint",
|
||||
RDMAINT_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,false)) {
|
||||
fprintf(stderr,"rdmaint: %s\n",err_msg.toUtf8().constData());
|
||||
rda->syslog(LOG_ERR,"%s",err_msg.toUtf8().constData());
|
||||
|
||||
@@ -57,7 +57,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmarkerset","rdmarkerset",RDMARKERSET_USAGE,this));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmarkerset",
|
||||
"rdmarkerset",RDMARKERSET_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rdmarkerset: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
|
||||
@@ -49,7 +49,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmetadata","rdmetadata",RDMETADATA_USAGE,this));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmetadata",
|
||||
"rdmetadata",RDMETADATA_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rdmetadata: %s\n",err_msg.toUtf8().constData());
|
||||
exit(1);
|
||||
|
||||
@@ -67,7 +67,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrender","rdrender",RDRENDER_USAGE,this));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrender","rdrender",
|
||||
RDRENDER_USAGE,false,this));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rdrender: %s\n",(const char *)err_msg.toUtf8());
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user