From 5acbae8cfa6d93373a17eebac1fa0a5947b56d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 16 Feb 2018 22:15:15 +0100 Subject: [PATCH] GUI: If no analysis has been done, there are no statistics to show --- gui/mainwindow.cpp | 1 + gui/mainwindow.ui | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index aa91bcc55..2721699a8 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -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(); diff --git a/gui/mainwindow.ui b/gui/mainwindow.ui index d73a34eb3..a625df193 100644 --- a/gui/mainwindow.ui +++ b/gui/mainwindow.ui @@ -495,6 +495,9 @@ + + false + :/images/text-x-generic.png:/images/text-x-generic.png