From c624e3f95f307c6d22617fdcd7cb91bbf857d699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Mon, 28 Aug 2023 13:39:34 +0200 Subject: [PATCH] Resizing a window by code correctly raises the Resize event again. [GB.QT4] * BUG: Resizing a window by code correctly raises the Resize event again. [GB.QT5] * BUG: Resizing a window by code correctly raises the Resize event again. --- gb.qt4/src/CWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.qt4/src/CWindow.cpp b/gb.qt4/src/CWindow.cpp index 4156bed8e..48e140f38 100644 --- a/gb.qt4/src/CWindow.cpp +++ b/gb.qt4/src/CWindow.cpp @@ -2387,7 +2387,7 @@ void MyMainWindow::resizeEvent(QResizeEvent *e) //qDebug("resizeEvent %ld %ld isHidden:%s shown:%s ", THIS->w, THIS->h, isHidden() ? "1" : "0", shown ? "1" : "0"); //qDebug("THIS->h = %ld THIS->container->height() = %ld height() = %ld", THIS->h, THIS->container->height(), height()); - if (THIS->opened && (e->spontaneous() || parentWidget())) + if (THIS->opened) // && (e->spontaneous() || parentWidget())) raise_resize_event(THIS); }