mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
2020-08-10 Fred Gleason <fredg@paravelsystems.com>
* Added a check in 'RDSvc::create()' to disallow creation of a service with a name containing whitespace. * Added whitespace to the set of banned characters for service names in the 'Add Service' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -48,10 +48,8 @@ AddSvc::AddSvc(QString *svcname,QWidget *parent)
|
||||
//
|
||||
// Fix the Window Size
|
||||
//
|
||||
setMinimumWidth(sizeHint().width());
|
||||
setMaximumWidth(sizeHint().width());
|
||||
setMinimumHeight(sizeHint().height());
|
||||
setMaximumHeight(sizeHint().height());
|
||||
setMinimumSize(sizeHint());
|
||||
setMaximumSize(sizeHint());
|
||||
|
||||
setWindowTitle("RDAdmin - "+tr("Add Service"));
|
||||
|
||||
@@ -59,6 +57,8 @@ AddSvc::AddSvc(QString *svcname,QWidget *parent)
|
||||
// Text Validator
|
||||
//
|
||||
RDTextValidator *validator=new RDTextValidator(this);
|
||||
validator->addBannedChar(QChar(' '));
|
||||
validator->addBannedChar(QChar('\t'));
|
||||
|
||||
//
|
||||
// Service Name
|
||||
|
||||
Reference in New Issue
Block a user