GUI: If no analysis has been done, there are no statistics to show

This commit is contained in:
Daniel Marjamäki 2018-02-16 22:15:15 +01:00
parent e4fd389075
commit 5acbae8cfa
2 changed files with 4 additions and 0 deletions

View File

@ -930,6 +930,7 @@ void MainWindow::analysisDone()
mUI.mActionPosix->setEnabled(true);
if (mScratchPad)
mScratchPad->setEnabled(true);
mUI.mActionViewStats->setEnabled(true);
if (mProjectFile && !mProjectFile->getBuildDir().isEmpty()) {
const QString prjpath = QFileInfo(mProjectFile->getFilename()).absolutePath();

View File

@ -495,6 +495,9 @@
</property>
</action>
<action name="mActionViewStats">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="gui.qrc">
<normaloff>:/images/text-x-generic.png</normaloff>:/images/text-x-generic.png</iconset>