From 084482bf3a03478fc1678e72f01553fad22662f9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 9 May 2018 12:40:41 +0200 Subject: no need to resize a window when its title changes --- src/core/stdmsg/src/msgdialog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 0a5ef46008..02278c8e9f 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -647,10 +647,8 @@ void CSrmmWindow::UpdateTitle() wchar_t oldtitle[256]; GetWindowText(m_pOwner->GetHwnd(), oldtitle, _countof(oldtitle)); - if (mir_wstrcmp(newtitle, oldtitle)) { //swt() flickers even if the title hasn't actually changed + if (mir_wstrcmp(newtitle, oldtitle)) //swt() flickers even if the title hasn't actually changed SetWindowText(m_pOwner->GetHwnd(), newtitle); - Resize(); - } } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3