Merge pull request #2868 from cold-brewed/hd-img-create-path

qt: New hdd image creation path
This commit is contained in:
Jasmine Iwanek
2022-11-15 12:00:47 -05:00
committed by GitHub

View File

@@ -328,6 +328,7 @@ void HarddiskDialog::onCreateNewFile() {
}
QFileInfo fi(fileName);
fileName = (fi.isRelative() && !fi.filePath().isEmpty()) ? usr_path + fi.filePath() : fi.filePath();
ui->fileField->setFileName(fileName);
QFile file(fileName);
if (! file.open(QIODevice::WriteOnly)) {