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
Tobias Hunger
qt-creator
Commits
3e0c6e3c
Commit
3e0c6e3c
authored
Mar 26, 2010
by
dt
Browse files
setStartupProject(0) now works as it should
Remove code that tries to be clever, I'm pretty sure it's better this way.
parent
8418e6c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/projectexplorer.cpp
View file @
3e0c6e3c
...
...
@@ -948,12 +948,9 @@ void ProjectExplorerPlugin::setStartupProject(Project *project)
if
(
debug
)
qDebug
()
<<
"ProjectExplorerPlugin::setStartupProject"
;
if
(
!
project
)
project
=
d
->
m_currentProject
;
if
(
!
project
)
return
;
d
->
m_session
->
setStartupProject
(
project
);
// NPE: Visually mark startup project
updateActions
();
}
...
...
@@ -1114,12 +1111,7 @@ Project *ProjectExplorerPlugin::startupProject() const
if
(
debug
)
qDebug
()
<<
"ProjectExplorerPlugin::startupProject"
;
Project
*
pro
=
d
->
m_session
->
startupProject
();
if
(
!
pro
)
pro
=
d
->
m_currentProject
;
return
pro
;
return
d
->
m_session
->
startupProject
();
}
void
ProjectExplorerPlugin
::
updateWelcomePage
()
...
...
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