Commit e819357b authored by Tobias Hunger's avatar Tobias Hunger

GenericProject: Pass base directory to startParsing(...) method

Change-Id: I59645aabac99261526808887e5fe25e575d8d79d
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent c76548ce
......@@ -560,7 +560,7 @@ SelectableFilesWidget::SelectableFilesWidget(QWidget *parent) :
connect(m_baseDirChooser, &Utils::PathChooser::validChanged,
this, &SelectableFilesWidget::baseDirectoryChanged);
connect(m_startParsingButton, &QAbstractButton::clicked,
this, &SelectableFilesWidget::startParsing);
this, [this]() { startParsing(m_baseDirChooser->fileName()); });
m_showFilesFilterLabel->setText(tr("Show files matching:"));
m_showFilesFilterEdit->setText(showFilter);
......@@ -641,7 +641,7 @@ void SelectableFilesWidget::resetModel(const Utils::FileName &path, const Utils:
m_baseDirChooser->setFileName(path);
m_view->setModel(m_model);
startParsing();
startParsing(path);
}
void SelectableFilesWidget::cancelParsing()
......@@ -675,13 +675,13 @@ void SelectableFilesWidget::baseDirectoryChanged(bool validState)
m_startParsingButton->setEnabled(validState);
}
void SelectableFilesWidget::startParsing()
void SelectableFilesWidget::startParsing(const Utils::FileName &baseDir)
{
if (!m_model)
return;
enableWidgets(false);
m_model->startParsing(m_baseDirChooser->fileName());
m_model->startParsing(baseDir);
}
void SelectableFilesWidget::parsingProgress(const Utils::FileName &fileName)
......
......@@ -176,7 +176,7 @@ private:
void applyFilter();
void baseDirectoryChanged(bool validState);
void startParsing();
void startParsing(const Utils::FileName &baseDir);
void parsingProgress(const Utils::FileName &fileName);
void parsingFinished();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment