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
Unmaintained
KDevPlatform
Commits
e0cd0532
Commit
e0cd0532
authored
Nov 11, 2012
by
Milian Wolff
Browse files
Gracefully handle the error case of no job being created
CCBUG: 278252
parent
601bbfe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
shell/projectsourcepage.cpp
View file @
e0cd0532
...
...
@@ -132,7 +132,6 @@ VcsJob* ProjectSourcePage::jobPerCurrent()
}
else
if
(
m_providerWidget
)
{
job
=
m_providerWidget
->
createWorkingCopy
(
url
);
}
Q_ASSERT
(
job
);
return
job
;
}
...
...
@@ -149,6 +148,9 @@ void ProjectSourcePage::getVcsProject()
}
VcsJob
*
job
=
jobPerCurrent
();
if
(
!
job
)
{
return
;
}
m_ui
->
sources
->
setEnabled
(
false
);
m_ui
->
sourceBox
->
setEnabled
(
false
);
...
...
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