forked from qt-creator/qt-creator
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:
@@ -605,7 +605,9 @@ void AppOutputPane::slotRunControlFinished2(RunControl *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
|
||||
RunControl *current = currentRunControl();
|
||||
|
||||
Reference in New Issue
Block a user