Commit 9c5fd3db authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Fix crash: Use argument in function, not m_curResults

parent 9f42b0f2
......@@ -2024,10 +2024,10 @@ void KatePluginSearchView::detachTabToMainWindow(Results *res)
}
int i = m_tabBar->currentIndex();
m_curResults->setWindowIcon(QIcon::fromTheme(QStringLiteral("edit-find")));
m_curResults->setWindowTitle(i18n("Search: %1", m_tabBar->tabText(i)));
Utils::addWidget(m_curResults, m_mainWindow);
m_curResults = nullptr;
res->setWindowIcon(QIcon::fromTheme(QStringLiteral("edit-find")));
res->setWindowTitle(i18n("Search: %1", m_tabBar->tabText(i)));
Utils::addWidget(res, m_mainWindow);
res = nullptr;
m_tabBar->removeTab(i);
addTab();
}
......
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