diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_notes.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_notes.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_notes.cpp b/protocols/JabberG/src/jabber_notes.cpp index a25abd5969..8fc18bf3f5 100644 --- a/protocols/JabberG/src/jabber_notes.cpp +++ b/protocols/JabberG/src/jabber_notes.cpp @@ -212,7 +212,7 @@ private: };
CJabberDlgNoteItem::CJabberDlgNoteItem(CJabberDlgBase *parent, CNoteItem *pNote):
- CSuper(parent->GetProto(), IDD_NOTE_EDIT, parent->GetHwnd()),
+ CSuper(parent->GetProto(), IDD_NOTE_EDIT),
m_pNote(pNote),
m_fnProcess(NULL),
m_txtTitle(this, IDC_TXT_TITLE),
@@ -220,11 +220,12 @@ CJabberDlgNoteItem::CJabberDlgNoteItem(CJabberDlgBase *parent, CNoteItem *pNote) m_txtTags(this, IDC_TXT_TAGS),
m_btnOk(this, IDOK)
{
+ SetParent(parent->GetHwnd());
m_btnOk.OnClick = Callback(this, &CJabberDlgNoteItem::btnOk_OnClick);
}
CJabberDlgNoteItem::CJabberDlgNoteItem(CJabberProto *proto, CNoteItem *pNote, TFnProcessNote fnProcess):
- CSuper(proto, IDD_NOTE_EDIT, NULL),
+ CSuper(proto, IDD_NOTE_EDIT),
m_pNote(pNote),
m_fnProcess(fnProcess),
m_txtTitle(this, IDC_TXT_TITLE),
|