This commit is contained in:
yangjiaxuan 2024-01-05 10:14:17 +08:00
parent ccf891c619
commit 1fcd960eea
1 changed files with 2 additions and 1 deletions

View File

@ -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;