From bd4918dc302ab7a0b2d03cbb2d935c4f2b995fce Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Sun, 16 Feb 2020 21:33:01 -0500 Subject: [PATCH] Remove version update from importCPAP --- oscar/SleepLib/profiles.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/oscar/SleepLib/profiles.cpp b/oscar/SleepLib/profiles.cpp index 13bb6b27..4c079452 100644 --- a/oscar/SleepLib/profiles.cpp +++ b/oscar/SleepLib/profiles.cpp @@ -566,10 +566,11 @@ void Profile::DataFormatError(Machine *m) // Note: I deliberately haven't added a Profile help for this if (backups) { MachineLoader * loader = lookupLoader(m); - int c = mainwin->importCPAP(ImportPath(m->getBackupPath(), loader), - QObject::tr("Rebuilding from %1 Backup").arg(m->brand())); - if ( c > 0 ) - m->info.version = loader->Version(); + /* int c = */ + mainwin->importCPAP(ImportPath(m->getBackupPath(), loader), + QObject::tr("Rebuilding from %1 Backup").arg(m->brand())); +// if ( c > 0 ) +// m->info.version = loader->Version(); } else { if (!p_profile->session->backupCardData()) { // Automatic backups not available for Intellipap users yet, so don't taunt them..