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
141f53cf
Commit
141f53cf
authored
Apr 18, 2011
by
Friedemann Kleint
Browse files
Run/Debug: Do not launch on a library project if user cancels
the executable dialog that pops up. Reviewed-by: dt
parent
a10e3a04
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerrunner.cpp
View file @
141f53cf
...
...
@@ -237,6 +237,15 @@ void DebuggerRunControl::setCustomEnvironment(Utils::Environment env)
void
DebuggerRunControl
::
start
()
{
QTC_ASSERT
(
d
->
m_engine
,
return
);
// User canceled input dialog asking for executable when working on library project.
if
(
d
->
m_engine
->
startParameters
().
startMode
==
StartInternal
&&
d
->
m_engine
->
startParameters
().
executable
.
isEmpty
())
{
appendMessage
(
tr
(
"No executable specified.
\n
"
),
ErrorMessageFormat
);
emit
started
();
emit
finished
();
return
;
}
debuggerCore
()
->
runControlStarted
(
d
->
m_engine
);
// We might get a synchronous startFailed() notification on Windows,
...
...
src/plugins/projectexplorer/localapplicationruncontrol.cpp
View file @
141f53cf
...
...
@@ -103,11 +103,15 @@ LocalApplicationRunControl::~LocalApplicationRunControl()
void
LocalApplicationRunControl
::
start
()
{
m_applicationLauncher
.
start
(
m_runMode
,
m_executable
,
m_commandLineArguments
);
emit
started
();
QString
msg
=
tr
(
"Starting %1...
\n
"
).
arg
(
QDir
::
toNativeSeparators
(
m_executable
));
appendMessage
(
msg
,
NormalMessageFormat
);
if
(
m_executable
.
isEmpty
())
{
appendMessage
(
tr
(
"No executable specified.
\n
"
),
ErrorMessageFormat
);
emit
finished
();
}
else
{
m_applicationLauncher
.
start
(
m_runMode
,
m_executable
,
m_commandLineArguments
);
QString
msg
=
tr
(
"Starting %1...
\n
"
).
arg
(
QDir
::
toNativeSeparators
(
m_executable
));
appendMessage
(
msg
,
NormalMessageFormat
);
}
}
LocalApplicationRunControl
::
StopResult
LocalApplicationRunControl
::
stop
()
...
...
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