keep SETTINGS_LAST_CHECK_PATH on no selected files (#5016)

set SETTINGS_LAST_CHECK_PATH only when mCurrentDirectory is not empty.
This commit is contained in:
Mo 2023-05-07 14:33:47 +08:00 committed by GitHub
parent 6c39d087b2
commit bd8a6f0681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -684,7 +684,7 @@ QStringList MainWindow::selectFilesToAnalyze(QFileDialog::FileMode mode)
formatAndSetTitle(dir); formatAndSetTitle(dir);
} }
} }
if (!mCurrentDirectory.isEmpty())
setPath(SETTINGS_LAST_CHECK_PATH, mCurrentDirectory); setPath(SETTINGS_LAST_CHECK_PATH, mCurrentDirectory);
return selected; return selected;