Debugger: Avoid crash in plugin unit test

Change-Id: I38d74f4a34e14f646eaf9f24ca9dc2e14ba06050
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-04-20 15:09:57 +02:00
parent 644ed0d464
commit d432b14472
2 changed files with 18 additions and 2 deletions

View File

@@ -1254,7 +1254,8 @@ void WatchHandler::cleanup()
saveWatchers();
m_model->reinitialize();
emit m_model->updateFinished();
m_model->m_separatedView->hide();
if (Internal::mainWindow())
m_model->m_separatedView->hide();
}
static bool sortByName(const TreeItem *a, const TreeItem *b)