mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 15:41:13 +02: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:
@@ -46,7 +46,7 @@ int RunReportOperation(int argc,char *argv[],const QString &rptname,
|
||||
}
|
||||
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("RDLogManager",
|
||||
"rdlogmanager",RDLOGMANAGER_USAGE));
|
||||
"rdlogmanager",RDLOGMANAGER_USAGE,true,NULL));
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
fprintf(stderr,"rdlogmanager: %s\n",err_msg.toUtf8().constData());
|
||||
exit(RDApplication::ExitNoDb);
|
||||
|
@@ -44,7 +44,8 @@ LogObject::LogObject(const QString &svcname,int start_offset,
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("RDLogManager","rdlogmanager",""));
|
||||
rda=static_cast<RDApplication *>(new RDCoreApplication("RDLogManager",
|
||||
"rdlogmanager","",true,NULL));
|
||||
if(!rda->open(&err_msg,NULL,false)) {
|
||||
fprintf(stderr,"rdlogmanager: %s\n",err_msg.toUtf8().constData());
|
||||
exit(RDApplication::ExitNoDb);
|
||||
|
@@ -52,7 +52,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=new RDApplication("RDLogManager","rdlogmanager",RDLOGMANAGER_USAGE,this);
|
||||
rda=new RDApplication("RDLogManager","rdlogmanager",RDLOGMANAGER_USAGE,true,
|
||||
this);
|
||||
if(!rda->open(&err_msg,NULL,true)) {
|
||||
QMessageBox::critical(this,"RDLogManager - "+tr("Error"),err_msg);
|
||||
exit(RDApplication::ExitNoDb);
|
||||
|
Reference in New Issue
Block a user