summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc16
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());