mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:15:10 +00:00
UI: WindowManager::activateModalWidget: Check ApplicationModal only
This commit is contained in:
parent
4995cb3b3b
commit
108ba9764d
@ -757,7 +757,7 @@ void TrayIcon::onTrayActivatedByTrigger()
|
||||
if (clickAction(DoubleClick)) {
|
||||
m_trayTriggered = true;
|
||||
QTimer::singleShot(QApplication::doubleClickInterval(), this,
|
||||
[=] { onTrayActivatedByClick(clickType, /*checkTriggered=*/true); });
|
||||
[=, this] { onTrayActivatedByClick(clickType, /*checkTriggered=*/true); });
|
||||
} else {
|
||||
onTrayActivatedByClick(clickType);
|
||||
}
|
||||
|
@ -709,7 +709,7 @@ bool WindowManager::isAnyWindowOpen(quint32 codes) const
|
||||
bool WindowManager::activateModalWidget()
|
||||
{
|
||||
auto w = QApplication::activeModalWidget();
|
||||
if (w) {
|
||||
if (w && w->windowModality() == Qt::ApplicationModal) {
|
||||
WidgetWindow::showWidget(w);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user