mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Don't close tags menu when toggling items (#15098)
The issue was resolved by using QAction::toggled signal instead of QAction::triggered. In QT 5.15+ the latter signal causes a QMenu to close, whereas the former does not. Closes #13492.
This commit is contained in:
@@ -41,7 +41,7 @@ public:
|
||||
TriStateWidget(const QString &text, QWidget *parent);
|
||||
|
||||
void setCheckState(Qt::CheckState checkState);
|
||||
void setCloseOnTriggered(bool enabled);
|
||||
void setCloseOnInteraction(bool enabled);
|
||||
|
||||
signals:
|
||||
void triggered(bool checked) const;
|
||||
@@ -55,7 +55,7 @@ private:
|
||||
|
||||
void toggleCheckState();
|
||||
|
||||
bool m_closeOnTriggered;
|
||||
bool m_closeOnInteraction;
|
||||
Qt::CheckState m_checkState;
|
||||
const QString m_text;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user