Bug fix in FDialog onWindowActive() for combined setFocus() and activateWindow()

This commit is contained in:
Markus Gans 2016-06-16 22:50:34 +02:00
parent 07fbe91cea
commit 203c50f4e6
2 changed files with 13 additions and 8 deletions

View File

@ -1,5 +1,7 @@
2016-06-16 Markus Gans <guru.mail@muenster.de> 2016-06-16 Markus Gans <guru.mail@muenster.de>
* Bug fix in FTerm updateVTerm() for updates from vdesktop * Bug fix in FTerm updateVTerm() for updates from vdesktop
* Bug fix in FDialog onWindowActive() for combined setFocus()
and activateWindow()
2016-06-13 Markus Gans <guru.mail@muenster.de> 2016-06-13 Markus Gans <guru.mail@muenster.de>
* Improved title bar menu integration * Improved title bar menu integration
@ -8,7 +10,7 @@
* Add a title bar menu to close dialogs * Add a title bar menu to close dialogs
2016-05-24 Markus Gans <guru.mail@muenster.de> 2016-05-24 Markus Gans <guru.mail@muenster.de>
* Use nl_langinfo to determine the numeric thousands separator * Use nl_langinfo to determine the numeric thousands separator
for Fstring::setFormatedNumber as default parameter for Fstring::setFormatedNumber as default parameter
2016-05-22 Markus Gans <guru.mail@muenster.de> 2016-05-22 Markus Gans <guru.mail@muenster.de>

View File

@ -724,15 +724,18 @@ void FDialog::onWindowActive (FEvent*)
if ( isVisible() && isShown() ) if ( isVisible() && isShown() )
drawTitleBar(); drawTitleBar();
if ( focus_widget && focus_widget->isVisible() && focus_widget->isShown() ) if ( ! FWidget::getFocusWidget() )
{ {
focus_widget->setFocus(); if ( focus_widget && focus_widget->isVisible() && focus_widget->isShown() )
focus_widget->redraw(); {
if ( statusBar() ) focus_widget->setFocus();
statusBar()->drawMessage(); focus_widget->redraw();
if ( statusBar() )
statusBar()->drawMessage();
}
else
focusFirstChild();
} }
else
focusFirstChild();
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------