Commit b19a801b authored by Jan Möbius's avatar Jan Möbius

Run without ui

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15788 383ad7c9-94d9-4d36-a494-682f7c89f535
parent da69b043
......@@ -76,6 +76,7 @@ propertyModel_(0)
void PropertyVisPlugin::initializePlugin()
{
if ( OpenFlipper::Options::gui() ) {
tool_ = new PropertyVisToolbar();
QSize size(300,300);
......@@ -100,6 +101,7 @@ void PropertyVisPlugin::initializePlugin()
QIcon* toolIcon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"PropertyVisIcon.png");
emit addToolbox( tr("Property Visualization") , tool_, toolIcon );
}
}
//-----------------------------------------------------------------------------
......@@ -129,7 +131,7 @@ void PropertyVisPlugin::slotAllCleared()
void PropertyVisPlugin::slotObjectUpdated( int _identifier, const UpdateType& _type )
{
if( tool_->isVisible() )
if( OpenFlipper::Options::gui() && tool_->isVisible() )
updateGUI();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment