Browse Source

ChatLog: don't start the resize worker if the width doesn't change

pull/974/head
krepa098 11 years ago
parent
commit
bc21af4fa2
  1. 12
      src/chatlog/chatlog.cpp

12
src/chatlog/chatlog.cpp

@ -614,9 +614,19 @@ void ChatLog::scrollContentsBy(int dx, int dy) @@ -614,9 +614,19 @@ void ChatLog::scrollContentsBy(int dx, int dy)
void ChatLog::resizeEvent(QResizeEvent* ev)
{
startResizeWorker();
bool stb = stickToBottom();
if(ev->size().width() != ev->oldSize().width())
{
startResizeWorker();
stb = false; // let the resize worker handle it
}
QGraphicsView::resizeEvent(ev);
if(stb)
scrollToBottom();
updateBusyNotification();
}

Loading…
Cancel
Save