forked from qt-creator/qt-creator
VcsCommand: Remove defaultWorkingRepository() getter
It wasn't really broadly used. Change-Id: If2e185a7d8d0f920f3ec7f507bf96dd81f4559b0 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -120,7 +120,7 @@ VcsCommand::VcsCommand(const FilePath &workingDirectory, const Environment &envi
|
||||
{
|
||||
connect(&d->m_watcher, &QFutureWatcher<void>::canceled, this, &VcsCommand::cancel);
|
||||
|
||||
VcsOutputWindow::setRepository(defaultWorkingDirectory().toString());
|
||||
VcsOutputWindow::setRepository(d->m_defaultWorkingDirectory.toString());
|
||||
VcsOutputWindow *outputWindow = VcsOutputWindow::instance(); // Keep me here, just to be sure it's not instantiated in other thread
|
||||
connect(this, &VcsCommand::append, outputWindow, [outputWindow](const QString &t) {
|
||||
outputWindow->append(t);
|
||||
@@ -194,11 +194,6 @@ void VcsCommand::setDisplayName(const QString &name)
|
||||
d->m_displayName = name;
|
||||
}
|
||||
|
||||
const FilePath &VcsCommand::defaultWorkingDirectory() const
|
||||
{
|
||||
return d->m_defaultWorkingDirectory;
|
||||
}
|
||||
|
||||
void VcsCommand::addFlags(unsigned f)
|
||||
{
|
||||
d->m_flags |= f;
|
||||
|
||||
Reference in New Issue
Block a user