Commit 4385c4db authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Connect signals after UI setup is complete to prevent a crash

If a preset is defined for email, then setting this preset value
during setup caused a crash.
parent 9dfd273c
......@@ -207,6 +207,10 @@ private:
}
std::copy(lines.begin(), lines.end(), std::back_inserter(lineList));
QObject::connect(nameLE, SIGNAL(textChanged(QString)), qq, SLOT(slotUserIDChanged()));
QObject::connect(emailLE, SIGNAL(textChanged(QString)), qq, SLOT(slotUserIDChanged()));
QObject::connect(commentLE, SIGNAL(textChanged(QString)), qq, SLOT(slotUserIDChanged()));
}
QPushButton *okPB() const
......
......@@ -203,54 +203,6 @@
</hint>
</hints>
</connection>
<connection>
<sender>nameLE</sender>
<signal>textChanged(QString)</signal>
<receiver>AddUserIDDialog</receiver>
<slot>slotUserIDChanged()</slot>
<hints>
<hint type="sourcelabel" >
<x>414</x>
<y>16</y>
</hint>
<hint type="destinationlabel" >
<x>448</x>
<y>18</y>
</hint>
</hints>
</connection>
<connection>
<sender>emailLE</sender>
<signal>textChanged(QString)</signal>
<receiver>AddUserIDDialog</receiver>
<slot>slotUserIDChanged()</slot>
<hints>
<hint type="sourcelabel" >
<x>412</x>
<y>54</y>
</hint>
<hint type="destinationlabel" >
<x>450</x>
<y>58</y>
</hint>
</hints>
</connection>
<connection>
<sender>commentLE</sender>
<signal>textChanged(QString)</signal>
<receiver>AddUserIDDialog</receiver>
<slot>slotUserIDChanged()</slot>
<hints>
<hint type="sourcelabel" >
<x>402</x>
<y>96</y>
</hint>
<hint type="destinationlabel" >
<x>446</x>
<y>96</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>slotUserIDChanged()</slot>
......
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