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
Tobias Hunger
qt-creator
Commits
68dae8bc
Commit
68dae8bc
authored
Nov 30, 2009
by
dt
Browse files
Fix crash on creating new qt4projects
parent
9a17d441
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/project.cpp
View file @
68dae8bc
...
...
@@ -275,8 +275,16 @@ bool Project::restoreSettingsImpl(PersistentSettingsReader &reader)
}
// Set Active Configuration
QString
activeConfigurationName
=
reader
.
restoreValue
(
"activebuildconfiguration"
).
toString
();
m_activeBuildConfiguration
=
buildConfigurations
().
at
(
buildConfigurationNames
.
indexOf
(
activeConfigurationName
));
{
// Try restoring the active configuration
QString
activeConfigurationName
=
reader
.
restoreValue
(
"activebuildconfiguration"
).
toString
();
int
index
=
buildConfigurationNames
.
indexOf
(
activeConfigurationName
);
if
(
index
!=
-
1
)
m_activeBuildConfiguration
=
buildConfigurations
().
at
(
index
);
else
if
(
!
buildConfigurations
().
isEmpty
())
m_activeBuildConfiguration
=
buildConfigurations
().
at
(
0
);
else
m_activeBuildConfiguration
=
0
;
}
//Build Settings
QVariant
buildStepsVariant
=
reader
.
restoreValue
(
"buildsteps"
);
...
...
Write
Preview
Markdown
is supported
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