forked from qt-creator/qt-creator
Project: Add setDocument method
Add setDocument method, implement document method, use this in all projects. Change-Id: I5018bf7c2739665c13eee340184ce7c41fd319bb Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -676,7 +676,7 @@ void VcsBasePlugin::createRepository()
|
||||
// Find current starting directory
|
||||
QString directory;
|
||||
if (const Project *currentProject = ProjectTree::currentProject())
|
||||
directory = currentProject->document()->filePath().toFileInfo().absolutePath();
|
||||
directory = currentProject->projectFilePath().toString();
|
||||
// Prompt for a directory that is not under version control yet
|
||||
QWidget *mw = ICore::mainWindow();
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user