Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
a741261f
Commit
a741261f
authored
Nov 30, 2009
by
dt
Browse files
Fist set the display name then addBuildConfiguration on clone
parent
a8c45054
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/plugins/cmakeprojectmanager/cmakeproject.cpp
View file @
a741261f
...
...
@@ -138,7 +138,6 @@ BuildConfiguration *CMakeBuildConfigurationFactory::clone(ProjectExplorer::Build
{
CMakeBuildConfiguration
*
old
=
static_cast
<
CMakeBuildConfiguration
*>
(
source
);
CMakeBuildConfiguration
*
bc
=
new
CMakeBuildConfiguration
(
old
);
m_project
->
addBuildConfiguration
(
bc
);
return
bc
;
}
...
...
src/plugins/genericprojectmanager/genericproject.cpp
View file @
a741261f
...
...
@@ -159,7 +159,6 @@ BuildConfiguration *GenericBuildConfigurationFactory::create(const QString &type
BuildConfiguration
*
GenericBuildConfigurationFactory
::
clone
(
BuildConfiguration
*
source
)
const
{
GenericBuildConfiguration
*
bc
=
new
GenericBuildConfiguration
(
static_cast
<
GenericBuildConfiguration
*>
(
source
));
m_project
->
addBuildConfiguration
(
bc
);
return
bc
;
}
...
...
src/plugins/projectexplorer/buildconfiguration.h
View file @
a741261f
...
...
@@ -114,7 +114,7 @@ public:
// project mode for editing
virtual
BuildConfiguration
*
create
(
const
QString
&
type
)
const
=
0
;
// clones a given BuildConfiguration
and
add
s
it to the project
// clones a given BuildConfiguration
, should not
add it to the project
virtual
BuildConfiguration
*
clone
(
BuildConfiguration
*
source
)
const
=
0
;
// restores a BuildConfiguration with the name and adds it to the project
...
...
src/plugins/projectexplorer/buildsettingspropertiespage.cpp
View file @
a741261f
...
...
@@ -339,6 +339,7 @@ void BuildSettingsWidget::cloneConfiguration(BuildConfiguration *sourceConfigura
m_buildConfiguration
=
m_project
->
buildConfigurationFactory
()
->
clone
(
sourceConfiguration
);
m_buildConfiguration
->
setDisplayName
(
newDisplayName
);
m_project
->
addBuildConfiguration
(
m_buildConfiguration
);
updateBuildSettings
();
}
...
...
src/plugins/qt4projectmanager/qt4project.cpp
View file @
a741261f
...
...
@@ -298,7 +298,6 @@ BuildConfiguration *Qt4BuildConfigurationFactory::clone(BuildConfiguration *sour
{
Qt4BuildConfiguration
*
oldbc
=
static_cast
<
Qt4BuildConfiguration
*>
(
source
);
Qt4BuildConfiguration
*
newbc
=
new
Qt4BuildConfiguration
(
oldbc
);
m_project
->
addBuildConfiguration
(
newbc
);
return
newbc
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment