forked from qt-creator/qt-creator
Fix logical XOR
The '^' is the bitwise XOR, we should use logical XOR in these contexts. The operator!=() should serve for it. More info and reasoning: https://stackoverflow.com/questions/24542 Change-Id: I1bd70bdcab25455f409594f0f14c209d1de11d18 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -1333,7 +1333,7 @@ bool DebuggerToolTipManagerPrivate::eventFilter(QObject *o, QEvent *e)
|
||||
const auto se = static_cast<const QWindowStateChangeEvent *>(e);
|
||||
const bool wasMinimized = se->oldState() & Qt::WindowMinimized;
|
||||
const bool isMinimized = static_cast<const QWidget *>(o)->windowState() & Qt::WindowMinimized;
|
||||
if (wasMinimized ^ isMinimized) {
|
||||
if (wasMinimized != isMinimized) {
|
||||
purgeClosedToolTips();
|
||||
for (DebuggerToolTipHolder *tooltip : qAsConst(m_tooltips))
|
||||
tooltip->widget->setVisible(!isMinimized);
|
||||
|
||||
Reference in New Issue
Block a user