forked from qt-creator/qt-creator
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:
@@ -59,7 +59,7 @@ void ChangeSelectionDialog::selectWorkingDirectory()
|
|||||||
// the head directory of the repository.
|
// the head directory of the repository.
|
||||||
QDir repository(location);
|
QDir repository(location);
|
||||||
do {
|
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());
|
m_ui.repositoryEdit->setText(repository.absolutePath());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user