Commit 2f7a3f3b authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix crash in urlbar

BUG: 459612
parent 4d03958f
Pipeline #237014 passed with stage
in 15 minutes and 45 seconds
......@@ -796,9 +796,14 @@ public:
return;
}
SymbolsTreeView t(this);
connect(&t, &SymbolsTreeView::navigateLeftRight, this, [this](int k) {
onNavigateLeftRight(k, true);
});
connect(
&t,
&SymbolsTreeView::navigateLeftRight,
this,
[this](int k) {
onNavigateLeftRight(k, true);
},
Qt::QueuedConnection);
const QString symbolName = idx.data().toString();
t.setSymbolsModel(m_symbolsModel, activeView, symbolName);
const auto pos = mapToGlobal(rectForIndex(idx).bottomLeft());
......@@ -819,9 +824,14 @@ public:
DirFilesList m(this);
connect(&m, &DirFilesList::openUrl, m_urlBar, &KateUrlBar::openUrlRequested);
connect(&m, &DirFilesList::openUrl, this, &BreadCrumbView::unsetFocus);
connect(&m, &DirFilesList::navigateLeftRight, this, [this](int k) {
onNavigateLeftRight(k, true);
});
connect(
&m,
&DirFilesList::navigateLeftRight,
this,
[this](int k) {
onNavigateLeftRight(k, true);
},
Qt::QueuedConnection);
m.setDir(d, idx.data().toString());
m.setFocus();
m.exec(pos);
......
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