comparison src/mainwindow.cpp @ 552:7663c1c19d47

Fix #356, Failed to open existing repository when using open "File Folder"
author Chris Cannam
date Thu, 16 Feb 2012 14:30:46 +0000
parents c2207b729ab0
children 9c8147c9f245
comparison
equal deleted inserted replaced
551:7aac208dfb5c 552:7663c1c19d47
1777 1777
1778 DEBUG << "status = " << status << ", containing = " << containing << endl; 1778 DEBUG << "status = " << status << ", containing = " << containing << endl;
1779 1779
1780 if (status == FolderHasRepo) { 1780 if (status == FolderHasRepo) {
1781 if (!askToOpenInsteadOfInit(local)) return false; 1781 if (!askToOpenInsteadOfInit(local)) return false;
1782 return openLocal(local);
1782 } 1783 }
1783 1784
1784 if (containing != "") { 1785 if (containing != "") {
1785 return complainAboutInitInRepo(local); 1786 return complainAboutInitInRepo(local);
1786 } 1787 }