forked from qt-creator/qt-creator
Callgrind: Fix enabling of KCachegrind action
Change-Id: I355730ff4bcf6579028066a6f1080cfb790b523e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
367c7e09ff
commit
7162c7162a
@@ -803,6 +803,7 @@ void CallgrindTool::updateRunActions()
|
|||||||
{
|
{
|
||||||
if (m_toolBusy) {
|
if (m_toolBusy) {
|
||||||
m_startAction->setEnabled(false);
|
m_startAction->setEnabled(false);
|
||||||
|
m_startKCachegrind->setEnabled(false);
|
||||||
m_startAction->setToolTip(tr("A Valgrind Callgrind analysis is still in progress."));
|
m_startAction->setToolTip(tr("A Valgrind Callgrind analysis is still in progress."));
|
||||||
m_stopAction->setEnabled(true);
|
m_stopAction->setEnabled(true);
|
||||||
} else {
|
} else {
|
||||||
@@ -934,11 +935,8 @@ void CallgrindTool::takeParserData(ParseData *data)
|
|||||||
{
|
{
|
||||||
showParserResults(data);
|
showParserResults(data);
|
||||||
|
|
||||||
if (!data) {
|
if (!data)
|
||||||
m_lastFileName.clear();
|
|
||||||
m_startKCachegrind->setEnabled(false);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
// clear first
|
// clear first
|
||||||
clearTextMarks();
|
clearTextMarks();
|
||||||
|
Reference in New Issue
Block a user