Refactor file reading function

This commit is contained in:
wh201906
2020-04-29 17:12:35 +08:00
parent 2b8e31e452
commit a65bcffffd
3 changed files with 36 additions and 27 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ void MainWindow::on_MF_File_loadButton_clicked()
else if(ui->MF_File_keyBox->isChecked())
{
title = tr("Plz select the key file:");
filename = QFileDialog::getOpenFileName(this, title, "./", tr("Binary Key Files(*.bin *.dump);;All Files(*.*)"));
filename = QFileDialog::getOpenFileName(this, title, "./", tr("Binary Key Files(*.bin *.dump);;Binary Data Files(*.bin *.dump);;All Files(*.*)"));
qDebug() << filename;
if(filename != "")
{