Commit 9840bfb9 authored by Nikita Sirgienko's avatar Nikita Sirgienko
Browse files

Fix bug with unfocused entry after Cantor start

BUG: 395976
FIXED-IN: 18.12.2
parent 28730c17
......@@ -35,6 +35,7 @@
#include <QDir>
#include <QFileDialog>
#include <QPushButton>
#include <QGraphicsView>
#include "lib/backend.h"
#include "lib/panelpluginhandler.h"
......@@ -301,6 +302,9 @@ void CantorShell::addWorksheet(const QString& backendName)
int tab = m_tabWidget->addTab(part->widget(), QIcon::fromTheme(backend->icon()), i18n("Session %1", sessionCount++));
m_tabWidget->setCurrentIndex(tab);
// Setting focus on worksheet view, because Qt clear focus of added widget inside addTab
// This fix https://bugs.kde.org/show_bug.cgi?id=395976
part->widget()->findChild<QGraphicsView*>()->setFocus();
}
else
delete part;
......
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