* BUG: Always activate a window 50 ms after it has been shown, to trap any
  focus stealing prevention mechanism.


git-svn-id: svn://localhost/gambas/trunk@3090 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2010-08-02 20:48:04 +00:00
parent 67b9603177
commit 9411b8785f

View file

@ -1712,10 +1712,10 @@ void MyMainWindow::showActivate(QWidget *transient)
//MAIN_process_events();
//usleep(50000);
//_activate = TRUE;
if (isToolbar())
QTimer::singleShot(50, this, SLOT(activateLater()));
else
activateWindow();
//if (isToolbar())
QTimer::singleShot(50, this, SLOT(activateLater()));
//else
// activateWindow();
}
}
else