mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Manager: Fix total machine count not increasing when adding or cloning a machine
This commit is contained in:
@@ -288,6 +288,7 @@ illegal_chars:
|
||||
// Get the index of the newly-created system and select it
|
||||
const QModelIndex mapped_index = proxy_model->mapFromSource(created_object);
|
||||
ui->listView->setCurrentIndex(mapped_index);
|
||||
modelDataChange();
|
||||
} else {
|
||||
QDir(dstPath).removeRecursively();
|
||||
QMessageBox::critical(this, tr("Clone"), tr("Failed to clone VM."), QMessageBox::Ok);
|
||||
@@ -764,6 +765,7 @@ VMManagerMain::addNewSystem(const QString &name, const QString &dir, const QStri
|
||||
const QModelIndex mapped_index = proxy_model->mapFromSource(created_object);
|
||||
ui->listView->setCurrentIndex(mapped_index);
|
||||
delete new_system;
|
||||
modelDataChange();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user