From 1f81e1f0666b919b412ff5cf4926a8c0fd52bf0c Mon Sep 17 00:00:00 2001 From: tux3 Date: Sat, 5 Sep 2015 23:53:30 +0200 Subject: [PATCH] Don't reload content dialog if nothing changed Should fix the zetok's Resizing problem in #1938 --- src/widget/contentdialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widget/contentdialog.cpp b/src/widget/contentdialog.cpp index f63d9a93b..86e2e3cdc 100644 --- a/src/widget/contentdialog.cpp +++ b/src/widget/contentdialog.cpp @@ -588,6 +588,10 @@ void ContentDialog::onChatroomWidgetClicked(GenericChatroomWidget *widget, bool return; } + // If we clicked on the currently active widget, don't reload and relayout everything + if (activeChatroomWidget == widget) + return; + contentLayout->clear(); if (activeChatroomWidget != nullptr)