mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
2021-08-16 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdadmin(1) that caused a newly created schedule code to persist even if its creation was abandoned halfway through the creation process. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -120,12 +120,11 @@ void ListSchedCodes::addData()
|
||||
{
|
||||
QString scode;
|
||||
|
||||
if(list_add_schedcode_dialog->exec(&scode)) {
|
||||
if(list_edit_schedcode_dialog->exec(scode)) {
|
||||
QModelIndex index=list_schedcodes_model->addSchedCode(scode);
|
||||
if(index.isValid()) {
|
||||
list_schedcodes_view->selectRow(index.row());
|
||||
}
|
||||
if(list_add_schedcode_dialog->exec(&scode)&&
|
||||
list_edit_schedcode_dialog->exec(scode)) {
|
||||
QModelIndex index=list_schedcodes_model->addSchedCode(scode);
|
||||
if(index.isValid()) {
|
||||
list_schedcodes_view->selectRow(index.row());
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user