Fixes: - tools->git->show commit dialog broken

Task:     - 237689
Details:  - .git is a hidden file, so we need the QDir::Hidden flag as well
This commit is contained in:
con
2008-12-10 12:27:08 +01:00
parent e665fc822e
commit 7a4ef123ef

View File

@@ -59,7 +59,7 @@ void ChangeSelectionDialog::selectWorkingDirectory()
// the head directory of the repository.
QDir repository(location);
do {
if (repository.entryList(QDir::AllDirs).contains(QLatin1String(".git"))) {
if (repository.entryList(QDir::AllDirs|QDir::Hidden).contains(QLatin1String(".git"))) {
m_ui.repositoryEdit->setText(repository.absolutePath());
return;
}