Skip to content

Commit

Permalink
fix: cannot properly find and verify some special-name original files
Browse files Browse the repository at this point in the history
  • Loading branch information
saturneric committed Feb 1, 2024
1 parent 55afb9f commit 0e1f354
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/main_window/MainWindowFileSlotFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ void MainWindow::SlotFileVerify(const QString& path) {
if (prossible_singleton_target) {
swap(data_file_path, sign_file_path);
} else {
data_file_path = file_info.path() + "/" + file_info.baseName();
data_file_path = file_info.path() + "/" + file_info.completeBaseName();
}

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

if (!ok) return;

data_file_path = text.isEmpty() ? path : text;
data_file_path = text.isEmpty() ? data_file_path : text;
data_file_info = QFileInfo(data_file_path);
}

if (!data_file_info.isFile() ||
Expand Down

0 comments on commit 0e1f354

Please sign in to comment.