Commit 064ed40b authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

ensure close all projects action has right state

parent c97ff968
......@@ -680,6 +680,9 @@ void KateProjectPluginView::slotProjectClose(KateProject *project)
// inform onward
Q_EMIT pluginProjectRemoved(project->baseDir(), project->name());
// update actions, e.g. the close all stuff needs this
updateActions();
}
QString KateProjectPluginView::currentWord() const
......@@ -846,7 +849,7 @@ void KateProjectPluginView::updateActions()
m_projectNextAction->setEnabled(projectActive);
m_projectGotoIndexAction->setEnabled(projectActive);
m_projectCloseAction->setEnabled(projectActive);
m_projectCloseAllAction->setEnabled(!m_plugin->projects().empty());
m_projectCloseAllAction->setEnabled(m_projectsCombo->count() > 0);
}
void KateProjectPluginView::slotActivateProject(KateProject *project)
......
Supports Markdown
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