https://bugs.kde.org/show_bug.cgi?id=504104

--- Comment #4 from Igor Kushnir <igor...@gmail.com> ---
A simple workaround is the following patch for
kdevelop/plugins/filetemplates/templateselectionpage.cpp:
 void TemplateSelectionPagePrivate::handleNewStuffDialogFinished()
 {
     model->refresh();
+    ui->view->setCurrentIndex(QModelIndex{});
 }

But this patch is far from ideal because everything is deselected. A better
solution would be to not refresh the model if nothing has changed and select
the just installed template otherwise, as
ProjectSelectionPage::handleNewStuffDialogFinished() does. And if nothing was
installed, select the previously selected template with the first template as a
fallback.

Can anyone check/recall how this worked before the crash? Any ideas in which Qt
or KF version the crash is present and absent?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to