summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgdialog.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-12 17:34:38 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-12 17:34:38 +0300
commitd160afb34dedf2abd93be57ef11336f2b0bc0e72 (patch)
tree1e6194ab2b984ad805a4d0604c17b5fb5bcd58a9 /plugins/Scriver/src/msgdialog.cpp
parent11988c90df38f9ee8297dc87599cd4e16ef59084 (diff)
Scriver: minor code reordering
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;