From 9404891eb0cd8473d551e49ea82e946519f1076d Mon Sep 17 00:00:00 2001
From: Mark Watkins <jedimark@users.sourceforge.net>
Date: Wed, 5 Oct 2011 16:49:12 +1000
Subject: [PATCH] Only nag with the oximetry message on first use

---
 mainwindow.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/mainwindow.cpp b/mainwindow.cpp
index 753442dc..d603fd98 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -370,7 +370,10 @@ void MainWindow::on_oximetryButton_clicked()
 {
     bool first=false;
     if (!oximetry) {
-        if (QMessageBox::question(this,"Question","Do you have a CMS50[x] Oximeter?\nOne is required to use this section.",QMessageBox::Yes,QMessageBox::No)==QMessageBox::No) return;
+        if (!pref.Exists("HaveCMS50") || !pref["HaveCMS50"].toBool()) {
+            if (QMessageBox::question(this,"Question","Do you have a CMS50[x] Oximeter?\nOne is required to use this section.\nNote: This section is not fully completed yet.",QMessageBox::Yes,QMessageBox::No)==QMessageBox::No) return;
+            pref["HaveCMS50"]=true;
+        }
         oximetry=new Oximetry(ui->tabWidget,profile,daily->SharedWidget());
         ui->tabWidget->insertTab(3,oximetry,tr("Oximetry"));
         first=true;