forked from qt-creator/qt-creator
Git: Pass only project path to Init Repository dialog
It makes no sense to have the project file here, and under Windows it even creates confusion as you have to delete the project file name from the "Get Existing Directory" dialog. Change-Id: I51887d5665b4c61b507d64f8bdcc50f3d10c49c4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
79c4df1ea1
commit
1d9be08e90
@@ -640,7 +640,7 @@ void VcsBasePluginPrivate::createRepository()
|
||||
// Find current starting directory
|
||||
QString directory;
|
||||
if (const Project *currentProject = ProjectTree::currentProject())
|
||||
directory = currentProject->projectFilePath().toString();
|
||||
directory = currentProject->projectFilePath().absolutePath().toString();
|
||||
// Prompt for a directory that is not under version control yet
|
||||
QWidget *mw = ICore::dialogParent();
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user