2015-01-09 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'rdlogmanager/edit_eventline.cpp' that caused
	an invalid event line to be created when the dialog was closed
	by means of the 'X' button [GitHub issue #000053].
This commit is contained in:
Fred Gleason 2015-01-09 15:42:18 -05:00
parent ad53400250
commit 9ea2d9c020
3 changed files with 13 additions and 0 deletions

View File

@ -14705,3 +14705,7 @@
* Fixed a bug in 'rdlogmanager/editschedrules.cpp' and
'rdlogmanager/editschedrules.h' that caused scheduling rule data
to be corrupt if the rules list was resorted [GitHub issue #000054].
2015-01-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'rdlogmanager/edit_eventline.cpp' that caused
an invalid event line to be created when the dialog was closed
by means of the 'X' button [GitHub issue #000053].

View File

@ -237,3 +237,9 @@ void EditEventLine::cancelData()
{
done(-1);
}
void EditEventLine::closeEvent(QCloseEvent *e)
{
cancelData();
}

View File

@ -46,6 +46,9 @@ class EditEventLine : public QDialog
void okData();
void cancelData();
protected:
void closeEvent(QCloseEvent *e);
private:
RDEventLine *edit_eventline;
QLineEdit *edit_eventname_edit;