Commit 39ba3e48 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash on layout change

parent be7f27c8
Pipeline #119839 passed with stage
in 8 minutes and 44 seconds
......@@ -56,7 +56,7 @@ void DockTitleBarManager::slotShowTitleBars(bool show) {
void DockTitleBarManager::slotUpdateTitleBars(bool isTopLevel)
{
QList<QTabBar *> tabbars = findChildren<QTabBar *>();
QList<QTabBar *> tabbars = pCore->window()->findChildren<QTabBar *>();
for (QTabBar *tab : qAsConst(tabbars)) {
tab->setAcceptDrops(true);
tab->setChangeCurrentOnDrag(true);
......
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