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
9a089680
Commit
9a089680
authored
Oct 12, 2009
by
con
Browse files
Missing bookkeeping when removing Qt Versions.
Reviewed-by: dt
parent
68c2156f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qtversionmanager.cpp
View file @
9a089680
...
...
@@ -158,6 +158,7 @@ QtVersionManager *QtVersionManager::instance()
void
QtVersionManager
::
addVersion
(
QtVersion
*
version
)
{
QTC_ASSERT
(
version
!=
0
,
return
);
m_versions
.
append
(
version
);
m_uniqueIdToIndex
.
insert
(
version
->
uniqueId
(),
m_versions
.
count
()
-
1
);
emit
qtVersionsChanged
();
...
...
@@ -166,7 +167,9 @@ void QtVersionManager::addVersion(QtVersion *version)
void
QtVersionManager
::
removeVersion
(
QtVersion
*
version
)
{
QTC_ASSERT
(
version
!=
0
,
return
);
m_versions
.
removeAll
(
version
);
m_uniqueIdToIndex
.
remove
(
version
->
uniqueId
());
emit
qtVersionsChanged
();
writeVersionsIntoSettings
();
delete
version
;
...
...
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