Commit 5d71c134 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX #82] make custom widget visible after hiding again. One had to ccheck it...

[FIX #82] make custom widget visible after hiding again. One had to ccheck it in the widgte list before.
parent a54eb412
......@@ -902,7 +902,7 @@ void WMainWindow::customEvent( QEvent* event )
// create new custom dock widget
widget = boost::shared_ptr< WQtCustomDockWidget >(
new WQtCustomDockWidget( title, m_glDock, ocdwEvent->getProjectionMode() ) );
// m_glDock->addDockWidget( Qt::BottomDockWidgetArea, widget.get() );
m_glDock->addDockWidget( Qt::BottomDockWidgetArea, widget.get() );
// restore state and geometry
m_glDock->restoreDockWidget( widget.get() );
......@@ -918,6 +918,7 @@ void WMainWindow::customEvent( QEvent* event )
}
ocdwEvent->getFlag()->set( widget );
boost::shared_dynamic_cast< QDockWidget >( widget )->toggleViewAction()->activate( QAction::Trigger );
}
else if( event->type() == WCloseCustomDockWidgetEvent::CUSTOM_TYPE )
{
......
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