| 714 if (!dlg->exec()) |
714 if (!dlg->exec()) |
| 715 return; |
715 return; |
| 716 |
716 |
| 717 // Create the comment object based on input |
717 // Create the comment object based on input |
| 718 str commentText = fmt ("!HISTORY %1 [%2] %3", |
718 str commentText = fmt ("!HISTORY %1 [%2] %3", |
| 719 ui->m_date->date().toString ("yyyy-MM-dd"), |
719 ui->m_date->date().toString ("yyyy-MM-dd"), |
| 720 ui->m_username->text(), |
720 ui->m_username->text(), |
| 721 ui->m_comment->text()); |
721 ui->m_comment->text()); |
| 722 |
722 |
| 723 LDComment* comm = new LDComment (commentText); |
723 LDComment* comm = new LDComment (commentText); |
| 724 |
724 |
| 725 // Find a spot to place the new comment |
725 // Find a spot to place the new comment |
| 726 for ( |
726 for ( |