Commit 1393890a authored by Jan Möbius's avatar Jan Möbius

Fixed Bug not showing main toolbar

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7277 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c60ac6bb
......@@ -81,11 +81,6 @@ void CoreWidget::slotAddToolbar(QToolBar* _toolbar) {
}
}
// This only happens when the core adds a Toolbar
if ( id == -1 )
return;
}
for ( uint i = 0 ; i < toolbars_.size(); ++i ) {
......@@ -99,7 +94,8 @@ void CoreWidget::slotAddToolbar(QToolBar* _toolbar) {
toolbars_.push_back( _toolbar );
addToolBar( _toolbar );
plugins_[id].toolbars.push_back( std::pair< QString,QToolBar* >( _toolbar->windowTitle() , _toolbar) );
if ( id != -1 )
plugins_[id].toolbars.push_back( std::pair< QString,QToolBar* >( _toolbar->windowTitle() , _toolbar) );
// add widget name to viewMode 'all'
if ( !viewModes_[0]->visibleToolbars.contains( _toolbar->windowTitle() ) ){
......
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