Use widget method to activate it instead of QApplication's. The widget's method will bring it in front of other windows.

git-svn-id: http://voip.null.ro/svn/yate@2556 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2009-04-01 15:08:33 +00:00
parent 46d19513de
commit 1f5e3b2a8a
1 changed files with 5 additions and 2 deletions

View File

@ -936,8 +936,11 @@ bool QtWindow::setActive(const String& name, bool active)
XDebug(QtDriver::self(),DebugAll,"QtWindow::setActive(%s,%s) [%p]",
name.c_str(),String::boolText(active),this);
bool ok = (name == m_id);
if (ok)
QApplication::setActiveWindow(this);
if (ok) {
if (QWidget::isMinimized())
QWidget::showNormal();
QWidget::activateWindow();
}
QtWidget w(this,name);
if (w.invalid())
return ok;