Commit 355241a9 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

Revert "fix crash on closing of multiple projects"

This reverts commit 8909aaab.
parent 5e141326
......@@ -116,14 +116,7 @@ KateProjectPluginView::KateProjectPluginView(KateProjectPlugin *plugin, KTextEdi
connect(m_projectsComboGit, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, [this](int index) {
m_projectsCombo->setCurrentIndex(index);
});
// we queue this stuff to not have ping-pong document close/open during closing multiple projects
connect(m_projectsCombo,
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
this,
&KateProjectPluginView::slotCurrentChanged,
Qt::QueuedConnection);
connect(m_projectsCombo, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &KateProjectPluginView::slotCurrentChanged);
connect(m_reloadButton, &QToolButton::clicked, this, &KateProjectPluginView::slotProjectReload);
connect(m_closeProjectButton, &QToolButton::clicked, this, &KateProjectPluginView::slotProjectAboutToClose);
......@@ -487,9 +480,6 @@ void KateProjectPluginView::slotDocumentSaved()
void KateProjectPluginView::slotCurrentChanged(int index)
{
// this is done in a queued connection, query real index
index = m_projectsCombo->currentIndex();
// trigger change of stacked widgets
m_stackedProjectViews->setCurrentIndex(index);
m_stackedProjectInfoViews->setCurrentIndex(index);
......
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