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
5d0c1a41
Commit
5d0c1a41
authored
Feb 23, 2011
by
dt
Browse files
Toolchainsoptions page: Treat adding/removing correctly
Reviewed-By: hunger
parent
5e2171bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/toolchainoptionspage.cpp
View file @
5d0c1a41
...
...
@@ -307,7 +307,6 @@ void ToolChainModel::apply()
foreach
(
ToolChainNode
*
n
,
nodes
)
{
ToolChainManager
::
instance
()
->
registerToolChain
(
n
->
toolChain
);
}
Q_ASSERT
(
m_toAddList
.
isEmpty
());
}
void
ToolChainModel
::
discard
()
...
...
@@ -339,6 +338,7 @@ void ToolChainModel::discard()
n
->
widget
->
discard
();
n
->
changed
=
false
;
}
reset
();
}
void
ToolChainModel
::
markForRemoval
(
ToolChain
*
tc
)
...
...
@@ -351,9 +351,15 @@ void ToolChainModel::markForRemoval(ToolChain *tc)
}
}
if
(
node
)
{
m_toRemoveList
.
append
(
node
);
emit
beginRemoveRows
(
index
(
m_manualRoot
),
m_manualRoot
->
childNodes
.
indexOf
(
node
),
m_manualRoot
->
childNodes
.
indexOf
(
node
));
m_manualRoot
->
childNodes
.
removeOne
(
node
);
if
(
m_toAddList
.
contains
(
node
))
{
delete
node
->
toolChain
;
node
->
toolChain
=
0
;
m_toAddList
.
removeOne
(
node
);
}
else
{
m_toRemoveList
.
append
(
node
);
}
emit
endRemoveRows
();
}
}
...
...
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