Commit 21b959c2 authored by Albert Astals Cid's avatar Albert Astals Cid

Fix wrong connect

I guess at some point this was wrongly ported, the slot object has to be parent(), that is a RecipientsEditor, not parent, which is the widget the new line is immediately created on.

QObject::connect: Cannot connect MessageComposer::RecipientLineNG::addRecipient(RecipientLineNG\*,QString) to (null)::addRecipient(RecipientLineNG\*,QString) is gone when starting to write a new email

REVIEW: 125477
parent 6992d475
......@@ -47,10 +47,10 @@ RecipientLineFactory::RecipientLineFactory(QObject *parent)
}
KPIM::MultiplyingLine *RecipientLineFactory::newLine(QWidget *parent)
KPIM::MultiplyingLine *RecipientLineFactory::newLine(QWidget *p)
{
RecipientLineNG *line = new RecipientLineNG(parent);
connect(line, SIGNAL(addRecipient(RecipientLineNG*,QString)), qobject_cast<RecipientsEditor *>(parent), SLOT(addRecipient(RecipientLineNG*,QString)));
RecipientLineNG *line = new RecipientLineNG(p);
connect(line, SIGNAL(addRecipient(RecipientLineNG*,QString)), qobject_cast<RecipientsEditor *>(parent()), SLOT(addRecipient(RecipientLineNG*,QString)));
return line;
}
......
Markdown is supported
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