forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.15'
Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri Change-Id: Ibd07b5b5ff7c3282134b062ed28b1c4951061c97
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -357,13 +357,20 @@ namespace ADS
|
||||
save();
|
||||
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)) {
|
||||
/* There have been crashes with partially destructed widgets in
|
||||
m_floatingWidgets. Those do not have a parent. */
|
||||
if (floatingWidget && floatingWidget->parent() == this)
|
||||
delete floatingWidget.data();
|
||||
if (floatingWidget)
|
||||
aboutToDeletes.push_back(floatingWidget);
|
||||
}
|
||||
|
||||
for (auto del : aboutToDeletes) {
|
||||
delete del;
|
||||
}
|
||||
|
||||
d->m_floatingWidgets.clear();
|
||||
|
||||
delete d;
|
||||
}
|
||||
|
||||
|
@@ -922,7 +922,7 @@ void CMakeBuildSystem::runCTest()
|
||||
process.setWorkingDirectory(workingDirectory);
|
||||
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)
|
||||
return;
|
||||
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.
|
||||
Project *p = project();
|
||||
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;
|
||||
const QString fp = n->filePath().toString();
|
||||
const int pos = fp.lastIndexOf('.');
|
||||
|
@@ -64,8 +64,6 @@ FileApiReader::FileApiReader()
|
||||
|
||||
FileApiReader::~FileApiReader()
|
||||
{
|
||||
if (isParsing())
|
||||
emit errorOccurred(tr("Parsing has been canceled."));
|
||||
stop();
|
||||
resetData();
|
||||
}
|
||||
|
Reference in New Issue
Block a user