Skip to content

Commit f00c172

Browse files
authored
Merge pull request #131 from saturneric/dev/2.1.1/main
Develop 2.1.2.6
2 parents 264eff9 + 0e1f354 commit f00c172

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ui/main_window/MainWindowFileSlotFunction.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ void MainWindow::SlotFileVerify(const QString& path) {
465465
if (prossible_singleton_target) {
466466
swap(data_file_path, sign_file_path);
467467
} else {
468-
data_file_path = file_info.path() + "/" + file_info.baseName();
468+
data_file_path = file_info.path() + "/" + file_info.completeBaseName();
469469
}
470470

471471
auto data_file_info = QFileInfo(data_file_path);
@@ -480,7 +480,8 @@ void MainWindow::SlotFileVerify(const QString& path) {
480480

481481
if (!ok) return;
482482

483-
data_file_path = text.isEmpty() ? path : text;
483+
data_file_path = text.isEmpty() ? data_file_path : text;
484+
data_file_info = QFileInfo(data_file_path);
484485
}
485486

486487
if (!data_file_info.isFile() ||

0 commit comments

Comments
 (0)