mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-04-24 23:13:37 +02:00
2021-10-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdlogmanager(1) in the 'Log Events' dialog that caused a 'phantom' additional entry in the event list to be created when overwriting an existing event during a 'Save As' operation. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -23,10 +23,10 @@
|
||||
#include "add_event.h"
|
||||
#include "edit_event.h"
|
||||
|
||||
AddEvent::AddEvent(QString *logname,QWidget *parent)
|
||||
AddEvent::AddEvent(QString *evt_name,QWidget *parent)
|
||||
: RDDialog(parent)
|
||||
{
|
||||
event_name=logname;
|
||||
event_name=evt_name;
|
||||
|
||||
setWindowTitle("RDLogManager - "+tr("Add Log Event"));
|
||||
|
||||
@@ -142,13 +142,13 @@ void AddEvent::nameChangedData(const QString &str)
|
||||
void AddEvent::okData()
|
||||
{
|
||||
*event_name=event_name_edit->text();
|
||||
done(0);
|
||||
done(true);
|
||||
}
|
||||
|
||||
|
||||
void AddEvent::cancelData()
|
||||
{
|
||||
done(-1);
|
||||
done(false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user