Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a7d6e056 authored by Marco Martin's avatar Marco Martin

show/hide toolbars when it should

parent 06a34505
......@@ -389,7 +389,7 @@ void SettingsBase::changeToolBar( BaseMode::ToolBarItems toolbar )
guiFactory()->plugActionList( this, "quit", quitBarActions );
}
toolBar()->setVisible(toolbar != BaseMode::NoItems);
toolBar()->setVisible(toolbar != BaseMode::NoItems || (activeView && activeView->actionsList().count() > 0));
}
void SettingsBase::changeAboutMenu( const KAboutData * menuAbout, QAction * menuItem, QString fallback )
......
......@@ -223,6 +223,7 @@ void ClassicMode::initWidget()
QList<int> defaultSizes;
defaultSizes << 250 << 500;
d->classicWidget->setSizes( config().readEntry( "viewLayout", defaultSizes ) );
emit changeToolBarItems( BaseMode::Search | BaseMode::Configure | BaseMode::Quit );
}
void ClassicMode::leaveModuleView()
......
......@@ -185,6 +185,7 @@ void IconMode::initWidget()
d->mainWidget->addWidget( d->categoryView );
d->mainWidget->addWidget( d->moduleView );
d->mainWidget->setCurrentWidget( d->categoryView );
emit changeToolBarItems( BaseMode::Search | BaseMode::Configure | BaseMode::Quit );
}
void IconMode::leaveModuleView()
......
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