diff --git a/src/qt/qt_harddiskdialog.cpp b/src/qt/qt_harddiskdialog.cpp index 22459f4fb..c514b9c48 100644 --- a/src/qt/qt_harddiskdialog.cpp +++ b/src/qt/qt_harddiskdialog.cpp @@ -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)) {