Don't unmount ZIP and MO drives on settings save
This commit is contained in:
@@ -128,7 +128,6 @@ SettingsOtherRemovable::~SettingsOtherRemovable()
|
|||||||
|
|
||||||
void SettingsOtherRemovable::save() {
|
void SettingsOtherRemovable::save() {
|
||||||
auto* model = ui->tableViewMO->model();
|
auto* model = ui->tableViewMO->model();
|
||||||
memset(mo_drives, 0, sizeof(mo_drives));
|
|
||||||
for (int i = 0; i < MO_NUM; i++) {
|
for (int i = 0; i < MO_NUM; i++) {
|
||||||
mo_drives[i].f = NULL;
|
mo_drives[i].f = NULL;
|
||||||
mo_drives[i].priv = NULL;
|
mo_drives[i].priv = NULL;
|
||||||
@@ -138,7 +137,6 @@ void SettingsOtherRemovable::save() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model = ui->tableViewZIP->model();
|
model = ui->tableViewZIP->model();
|
||||||
memset(zip_drives, 0, sizeof(zip_drives));
|
|
||||||
for (int i = 0; i < ZIP_NUM; i++) {
|
for (int i = 0; i < ZIP_NUM; i++) {
|
||||||
zip_drives[i].f = NULL;
|
zip_drives[i].f = NULL;
|
||||||
zip_drives[i].priv = NULL;
|
zip_drives[i].priv = NULL;
|
||||||
|
Reference in New Issue
Block a user