2018-02-06 Fred Gleason <fredg@paravelsystems.com>

* Refactored the RDListLogs class to use RDApplication.
	* Converted rdadmin(1) to use RDApplication.
This commit is contained in:
Fred Gleason
2018-02-05 22:22:50 -05:00
parent dbbf49e987
commit 2d2d52e408
38 changed files with 315 additions and 311 deletions

View File

@@ -2,7 +2,7 @@
//
// Add a Rivendell Service
//
// (C) Copyright 2002,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002,2016-2018 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -30,6 +30,7 @@
#include <qcheckbox.h>
#include <qbuttongroup.h>
#include <rdapplication.h>
#include <rddb.h>
#include <rdpasswd.h>
#include <rdtextvalidator.h>
@@ -153,7 +154,7 @@ void AddSvc::okData()
if(svc_exemplar_box->currentItem()>0) {
exemplar=svc_exemplar_box->currentText();
}
if(!RDSvc::create(svc_name_edit->text(),&err_msg,exemplar,admin_config)) {
if(!RDSvc::create(svc_name_edit->text(),&err_msg,exemplar,rda->config())) {
QMessageBox::warning(this,"RDAdmin - "+tr("Error"),err_msg);
return;
}