Added BLACK_VERIFY

This commit is contained in:
Klaus Basan
2017-03-23 03:17:51 +01:00
committed by Mathew Sutcliffe
parent 46521c5560
commit 102a0d51a0

View File

@@ -15,8 +15,8 @@
#include "blackgui/components/dbmodelcomponent.h"
#include "blackgui/components/logcomponent.h"
#include "blackmisc/icons.h"
#include "blackmisc/verify.h"
#include "ui_datamaininfoareacomponent.h"
#include <QIcon>
using namespace BlackMisc;
@@ -66,12 +66,16 @@ namespace BlackGui
void CDataMainInfoAreaComponent::displayLog()
{
this->selectArea(InfoAreaLog);
BLACK_VERIFY_X(this->getLogComponent(), Q_FUNC_INFO, "No log component");
if (!this->getLogComponent()) { return; }
this->getLogComponent()->displayLog();
}
void CDataMainInfoAreaComponent::displayConsole()
{
this->selectArea(InfoAreaLog);
BLACK_VERIFY_X(this->getLogComponent(), Q_FUNC_INFO, "No log component");
if (!this->getLogComponent()) { return; }
this->getLogComponent()->displayConsole();
}