mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
Update machine.info.version after upgrade re-import
This commit is contained in:
parent
3886543c40
commit
1a258eae34
@ -565,7 +565,11 @@ void Profile::DataFormatError(Machine *m)
|
|||||||
}
|
}
|
||||||
// Note: I deliberately haven't added a Profile help for this
|
// Note: I deliberately haven't added a Profile help for this
|
||||||
if (backups) {
|
if (backups) {
|
||||||
mainwin->importCPAP(ImportPath(m->getBackupPath(), lookupLoader(m)), QObject::tr("Rebuilding from %1 Backup").arg(m->brand()));
|
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();
|
||||||
} else {
|
} else {
|
||||||
if (!p_profile->session->backupCardData()) {
|
if (!p_profile->session->backupCardData()) {
|
||||||
// Automatic backups not available for Intellipap users yet, so don't taunt them..
|
// Automatic backups not available for Intellipap users yet, so don't taunt them..
|
||||||
|
Loading…
Reference in New Issue
Block a user