From f81370f8cfeef90d236f47ad55b87a39e0abf477 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sun, 31 Jul 2016 22:49:09 +0200 Subject: [PATCH] Do not redraw the dialog on activate --- doc/TODO | 4 +++- src/fdialog.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/TODO b/doc/TODO index d601759a..dbcf9b76 100644 --- a/doc/TODO +++ b/doc/TODO @@ -20,10 +20,12 @@ Missing Features └──► tmp --------------------------------------- +- Screen characters should get the options transparent + and transparent with color - FDialog title button [▲] and [▼] should maximized or restore the window size on a resizeable dialog - A possibility to change the window size dynamically with the mouse - Add a scrolling area with on-demand scroll bars for FButtonGroup -- Adding for flexible layouts a FGrid widget container that organizes +- Adding for flexible layouts a FGrid widget container that organizes its child widgets in rows and columns diff --git a/src/fdialog.cpp b/src/fdialog.cpp index da759b6b..2d82cd1e 100644 --- a/src/fdialog.cpp +++ b/src/fdialog.cpp @@ -1033,7 +1033,8 @@ void FDialog::activateDialog() if ( ! focusFirstChild() ) old_focus->unsetFocus(); - old_focus->redraw(); + if ( ! old_focus->isWindow() ) + old_focus->redraw(); } if ( statusBar() )