mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Merge pull request #1094 from ONLYOFFICE/patch/release/v8.0.0_r6
Fix bug 65660
This commit is contained in:
@ -205,6 +205,10 @@ CDownloadWidget::CDownloadWidget(QWidget *parent)
|
||||
m_pToolButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
m_pToolButton->setVisible(false);
|
||||
connect(m_pToolButton, &QPushButton::clicked, this, [=]() {
|
||||
if (isVisible()) {
|
||||
hide();
|
||||
return;
|
||||
}
|
||||
polish();
|
||||
show();
|
||||
QPoint pos = AscAppManager::isRtlEnabled() ? parent->geometry().topLeft() : parent->geometry().topRight() - QPoint(WIDGET_MAX_WIDTH, 0);
|
||||
@ -427,7 +431,7 @@ bool CDownloadWidget::eventFilter(QObject *obj, QEvent *ev)
|
||||
{
|
||||
switch (ev->type()) {
|
||||
case QEvent::WindowDeactivate:
|
||||
if (obj == this)
|
||||
if (obj == this && !m_pToolButton->underMouse())
|
||||
hide();
|
||||
break;
|
||||
case QEvent::HoverEnter:
|
||||
|
||||
Reference in New Issue
Block a user