Commit ac53a24d authored by loh tar's avatar loh tar Committed by Christoph Cullmann

QuickOpen: Toggle back to view manager when when quick open is already shown

Reviewers: #kate, cullmann

Reviewed By: #kate, cullmann

Subscribers: cullmann, kwrite-devel, #kate

Tags: #kate

Differential Revision: https://phabricator.kde.org/D16378
parent dd4760bc
......@@ -1139,6 +1139,15 @@ void KateMainWindow::slotFocusNextTab()
void KateMainWindow::slotQuickOpen()
{
/**
* toggle back to view manager when when quick open is already shown
*/
if (m_mainStackedWidget->currentWidget() == m_quickOpen) {
m_mainStackedWidget->setCurrentWidget(m_viewManager);
centralWidget()->setFocusProxy(m_viewManager);
return;
}
/**
* show quick open and pass focus to it
*/
......
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