From 1fcd960eeabc2c4ff2c30f2009ff7f8f1c9ce186 Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Fri, 5 Jan 2024 10:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/HGProductionTool/dialog_login.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/HGProductionTool/dialog_login.cpp b/app/HGProductionTool/dialog_login.cpp index 478d4aa..999f0cc 100644 --- a/app/HGProductionTool/dialog_login.cpp +++ b/app/HGProductionTool/dialog_login.cpp @@ -254,7 +254,8 @@ void Dialog_logIn::on_pushButton_updateFilename_clicked() void Dialog_logIn::on_pushButton_viewDirectory_clicked() { - QString fileName = getCfgValue("login", "profile", ui->comboBox_filenameList->currentText()); + QString fileName = getCurrentExePath() + ui->comboBox_filenameList->currentText().toLocal8Bit() + ".json"; + qDebug(fileName.toLocal8Bit().toStdString().c_str()); QFileInfo fileInfo(fileName); auto pathDir = fileInfo.path(); QString strFilePath = "file:///" + pathDir;