[ui] fix label not being blanked on device removal

* Part of #694
* Also set rufus-next to 2.8
This commit is contained in:
Pete Batard 2016-02-17 11:38:12 +00:00
parent f88faf1a4f
commit 9ebdecc124
4 changed files with 21 additions and 19 deletions

View file

@ -702,10 +702,12 @@ static BOOL PopulateProperties(int ComboIndex)
memset(&SelectedDrive, 0, sizeof(SelectedDrive));
if (ComboIndex < 0)
return TRUE;
goto out;
if (!SetDriveInfo(ComboIndex)) // This also populates FS
if (!SetDriveInfo(ComboIndex)) { // This also populates FS
SetProposedLabel(-1);
return FALSE;
}
SetTargetSystem();
SetFSFromISO();
EnableBootOptions(TRUE, TRUE);
@ -723,8 +725,8 @@ static BOOL PopulateProperties(int ComboIndex)
free(device_tooltip);
}
out:
SetProposedLabel(ComboIndex);
return TRUE;
}