summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgdialog.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-21 17:57:13 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-21 17:57:13 +0300
commitc432c0ee21eb34cf2ae35c12d152723150c575a5 (patch)
tree474483f4c5a5c111268d9c1fa7665434494b91ff /plugins/Scriver/src/msgdialog.cpp
parent5ff600c1beab4ce990cc6cfac533247b6d06ac7f (diff)
Scriver: read-only contacts' processing
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index 23572ba2d1..cf42f54796 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -505,7 +505,7 @@ void CMsgDialog::MessageDialogResize(int w, int h)
int avatarWidth = 0, avatarHeight = 0;
int toolbarWidth = w;
int messageEditWidth = w - 2;
- int hSplitterPos = pdat->iSplitterY;
+ int hSplitterPos = (m_bReadOnly) ? 0 : pdat->iSplitterY;
if (!pdat->flags2.bShowInfoBar) {
if (m_hbmpAvatarPic && g_dat.flags.bShowAvatar) {
@@ -553,7 +553,10 @@ void CMsgDialog::MessageDialogResize(int w, int h)
if (hSplitterPos < hSplitterMinBottom)
hSplitterPos = hSplitterMinBottom;
- pdat->iSplitterY = hSplitterPos;
+ if (m_bReadOnly)
+ hSplitterPos = 0;
+ else
+ pdat->iSplitterY = hSplitterPos;
if (isChat()) {
bool bNick = m_si->iType != GCW_SERVER && m_bNicklistEnabled;