diff options
author | deva <deva> | 2005-05-02 19:56:17 +0000 |
---|---|---|
committer | deva <deva> | 2005-05-02 19:56:17 +0000 |
commit | 0755a964c9b2095d31e8c03d7cff00b070831c9d (patch) | |
tree | b9e44f43285b6b101311e9ac654685b57b68eabe /src/mainwindow.cc | |
parent | b7a993e0d6aebb98c06e88eb9ca0aaa3674dfe78 (diff) |
cpr_clicked is now blocked, if a recording session on. A messagebox explains
how to stop before trying to change the cpr number again.
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r-- | src/mainwindow.cc | 16 |
1 files changed, 16 insertions, 0 deletions
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()); |