summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index 2299640531..23572ba2d1 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -182,6 +182,8 @@ bool CMsgDialog::OnInitDialog()
m_message.SendMsg(EM_EXLIMITTEXT, 0, nMax);
}
+ m_pParent->AddChild(this);
+
CreateInfobar();
OnOptionsApplied();
@@ -190,9 +192,6 @@ bool CMsgDialog::OnInitDialog()
UpdateTitle();
UpdateNickList();
UpdateChatLog();
-
- m_pParent->AddChild(this);
- PopupWindow(false);
}
else {
m_nickList.Hide();
@@ -200,8 +199,6 @@ bool CMsgDialog::OnInitDialog()
bool notifyUnread = GetFirstEvent();
- m_pParent->AddChild(this);
-
DB::ECPTR pCursor(DB::EventsRev(m_hContact));
while (MEVENT hdbEvent = pCursor.FetchNext()) {
DBEVENTINFO dbei = {};
@@ -212,8 +209,6 @@ bool CMsgDialog::OnInitDialog()
}
}
- PopupWindow(m_bIncoming);
-
if (notifyUnread) {
if (GetForegroundWindow() != m_hwndParent || m_pParent->m_hwndActive != m_hwnd) {
m_iShowUnread = 1;
@@ -227,6 +222,7 @@ bool CMsgDialog::OnInitDialog()
if (m_iMessagesInProgress > 0)
ShowMessageSending();
}
+ PopupWindow(m_bIncoming);
NotifyEvent(MSG_WINDOW_EVT_OPEN);
return true;