mirror of https://gitee.com/openkylin/peony.git
fix: 修改桌面快捷方式时拔出hdmi崩溃
This commit is contained in:
parent
065414fd0a
commit
6a4b4798c5
|
@ -471,9 +471,12 @@ QWidget *DesktopIconViewDelegate::createEditor(QWidget *parent, const QStyleOpti
|
|||
|
||||
getView()->setEditFlag(true);
|
||||
connect(edit, &IconViewEditor::returnPressed, this, &DesktopIconViewDelegate::slot_finishEdit);
|
||||
connect(edit, &IconViewEditor::destroyed, getView(), [=](){
|
||||
auto editDestroyConn = connect(edit, &IconViewEditor::destroyed, getView(), [=](){
|
||||
getView()->setEditFlag(false);
|
||||
});
|
||||
connect(getView(), &DesktopIconView::destroyed, edit, [=](){
|
||||
disconnect(editDestroyConn);
|
||||
});
|
||||
|
||||
return edit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue