Merge "Merge remote-tracking branch 'origin/4.15'"

This commit is contained in:
The Qt Project
2021-06-11 13:50:50 +00:00
4 changed files with 13 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -357,13 +357,20 @@ namespace ADS
save(); save();
saveStartupWorkspace(); saveStartupWorkspace();
// Using a temporal vector since the destructor of
// FloatingDockWidgetContainer alters d->m_floatingWidgets.
std::vector<FloatingDockContainer *> aboutToDeletes;
for (auto floatingWidget : qAsConst(d->m_floatingWidgets)) { for (auto floatingWidget : qAsConst(d->m_floatingWidgets)) {
/* There have been crashes with partially destructed widgets in if (floatingWidget)
m_floatingWidgets. Those do not have a parent. */ aboutToDeletes.push_back(floatingWidget);
if (floatingWidget && floatingWidget->parent() == this)
delete floatingWidget.data();
} }
for (auto del : aboutToDeletes) {
delete del;
}
d->m_floatingWidgets.clear(); d->m_floatingWidgets.clear();
delete d; delete d;
} }

View File

@@ -922,7 +922,7 @@ void CMakeBuildSystem::runCTest()
process.setWorkingDirectory(workingDirectory); process.setWorkingDirectory(workingDirectory);
process.start(cmd.executable().toString(), cmd.splitArguments(), QIODevice::ReadOnly); process.start(cmd.executable().toString(), cmd.splitArguments(), QIODevice::ReadOnly);
if (!process.waitForStarted(1000) || !process.waitForFinished(1000)) { if (!process.waitForStarted(1000) || !process.waitForFinished()) {
if (process.state() == QProcess::NotRunning) if (process.state() == QProcess::NotRunning)
return; return;
process.terminate(); process.terminate();
@@ -1139,7 +1139,7 @@ QList<ExtraCompiler *> CMakeBuildSystem::findExtraCompilers()
// Find all files generated by any of the extra compilers, in a rather crude way. // Find all files generated by any of the extra compilers, in a rather crude way.
Project *p = project(); Project *p = project();
const FilePaths fileList = p->files([&fileExtensions](const Node *n) { const FilePaths fileList = p->files([&fileExtensions](const Node *n) {
if (!Project::SourceFiles(n)) if (!Project::SourceFiles(n) || !n->isEnabled()) // isEnabled excludes nodes from the file system tree
return false; return false;
const QString fp = n->filePath().toString(); const QString fp = n->filePath().toString();
const int pos = fp.lastIndexOf('.'); const int pos = fp.lastIndexOf('.');

View File

@@ -64,8 +64,6 @@ FileApiReader::FileApiReader()
FileApiReader::~FileApiReader() FileApiReader::~FileApiReader()
{ {
if (isParsing())
emit errorOccurred(tr("Parsing has been canceled."));
stop(); stop();
resetData(); resetData();
} }