AppOutputPane: Fix wrong assert

This can actually happen and is not a problem

Task-number: QTCREATORBUG-12871
Change-Id: I0bcca39f160362a5c67cfceaefa5dd9d58d69b55
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Daniel Teske
2014-09-01 16:24:24 +02:00
parent 7b73ff7f77
commit 5b75af8049

View File

@@ -605,7 +605,9 @@ void AppOutputPane::slotRunControlFinished2(RunControl *sender)
{ {
const int senderIndex = indexOf(sender); const int senderIndex = indexOf(sender);
QTC_ASSERT(senderIndex != -1, return); // This slot is queued, so the stop() call in closeTab might lead to this slot, after closeTab already cleaned up
if (senderIndex == -1)
return;
// Enable buttons for current // Enable buttons for current
RunControl *current = currentRunControl(); RunControl *current = currentRunControl();