Fix dialog's check for isTooltip
Qt::Tooltip is a mix of other flags (0x0001101) using a simple & is not correct as any Window will have (0x0000001) set and the bitwise & operation will return a non-zero value REVIEW: 118906
This commit is contained in:
parent
655e7fcc0d
commit
dc79190b8d
@ -139,7 +139,7 @@ void DialogPrivate::syncBorders()
|
||||
|
||||
//Tooltips always have all the borders
|
||||
// floating windows have all borders
|
||||
if (!(q->flags() & Qt::ToolTip) && location != Plasma::Types::Floating) {
|
||||
if ((q->flags() & Qt::ToolTip) != Qt::ToolTip && location != Plasma::Types::Floating) {
|
||||
if (q->x() <= avail.x() || location == Plasma::Types::LeftEdge) {
|
||||
borders = borders & ~Plasma::FrameSvg::LeftBorder;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user