Gui: [skip ci] do not change link property when canceling dialog

This commit is contained in:
wmayer
2022-10-08 18:57:59 +02:00
parent 03a3ae8cd8
commit 841044a00a

View File

@@ -4360,12 +4360,15 @@ void LinkLabel::onLinkActivated (const QString& s)
void LinkLabel::onEditClicked ()
{
if(!dlg) {
if (!dlg) {
dlg = new DlgPropertyLink(this);
dlg->init(objProp,true);
connect(dlg, SIGNAL(finished(int)), this, SLOT(onLinkChanged()));
} else
connect(dlg, &DlgPropertyLink::accepted, this, &LinkLabel::onLinkChanged);
}
else {
dlg->init(objProp,false);
}
dlg->show();
}