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:
parent
46d19513de
commit
1f5e3b2a8a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue