From 0755a964c9b2095d31e8c03d7cff00b070831c9d Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 2 May 2005 19:56:17 +0000 Subject: cpr_clicked is now blocked, if a recording session on. A messagebox explains how to stop before trying to change the cpr number again. --- src/mainwindow.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/mainwindow.cc') diff --git a/src/mainwindow.cc b/src/mainwindow.cc index f7ba33d..829d0fd 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -27,6 +27,11 @@ */ /* * $Log$ + * Revision 1.22 2005/05/02 19:56:17 deva + * + * cpr_clicked is now blocked, if a recording session on. A messagebox explains + * how to stop before trying to change the cpr number again. + * * Revision 1.21 2005/05/02 18:47:21 deva * * Cpr now sent to decoder. And saved prioer to editing, in order to be able @@ -290,6 +295,17 @@ void MainWindow::cpr_clicked() char oldcpr[256]; char oldname[256]; + // If recording, stop recording before changingcpr + if(recording) { + MessageBox(this, + TXT_STOP_RECORDING_TITLE, + TXT_STOP_RECORDING, + TYPE_OK, + ICON_WARNING).exec(); + return; + } + + // Save CPR and name, from the labels. strcpy(oldname, lbl_name->text().ascii()); strcpy(oldcpr, lbl_cpr->text().ascii()); -- cgit v1.2.3