Skip to content
GitLab
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
9a0dce58
Commit
9a0dce58
authored
Apr 14, 2011
by
Tobias Hunger
Browse files
Gcc: Cause less update signals to be sent
Cause less update signals to be sent when changing the compiler path.
parent
dea6f67f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/gcctoolchain.cpp
View file @
9a0dce58
...
...
@@ -386,18 +386,24 @@ void GccToolChain::setCompilerPath(const QString &path)
if
(
path
==
m_compilerPath
)
return
;
if
(
displayName
()
==
defaultDisplayName
()
)
setDisplayName
(
typeName
());
bool
resetDisplayName
=
displayName
()
==
defaultDisplayName
()
;
m_compilerPath
=
path
;
m_supportedAbis
.
clear
();
Abi
currentAbi
=
m_targetAbi
;
m_targetAbi
=
Abi
();
if
(
!
m_compilerPath
.
isEmpty
())
{
updateSupportedAbis
();
if
(
!
m_supportedAbis
.
isEmpty
())
m_targetAbi
=
m_supportedAbis
.
at
(
0
);
if
(
!
m_supportedAbis
.
isEmpty
())
{
if
(
m_supportedAbis
.
contains
(
currentAbi
))
m_targetAbi
=
currentAbi
;
else
m_targetAbi
=
m_supportedAbis
.
at
(
0
);
}
if
(
d
isplayName
()
==
typeName
()
)
if
(
resetD
isplayName
)
setDisplayName
(
defaultDisplayName
());
}
updateId
();
// Will trigger toolChainUpdated()!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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