File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -168,21 +168,19 @@ void DockFocusControllerPrivate::updateDockWidgetFocus(CDockWidget* DockWidget)
168
168
#ifdef Q_OS_LINUX
169
169
// This code is required for styling the floating widget titlebar for linux
170
170
// depending on the current focus state
171
- if (FloatingWidget == NewFloatingWidget)
172
- {
173
- return ;
174
- }
175
-
176
- if (FloatingWidget)
177
- {
178
- updateFloatingWidgetFocusStyle (FloatingWidget, false );
179
- }
180
- FloatingWidget = NewFloatingWidget;
171
+ if (FloatingWidget != NewFloatingWidget)
172
+ {
173
+ if (FloatingWidget)
174
+ {
175
+ updateFloatingWidgetFocusStyle (FloatingWidget, false );
176
+ }
177
+ FloatingWidget = NewFloatingWidget;
181
178
182
- if (FloatingWidget)
183
- {
184
- updateFloatingWidgetFocusStyle (FloatingWidget, true );
185
- }
179
+ if (FloatingWidget)
180
+ {
181
+ updateFloatingWidgetFocusStyle (FloatingWidget, true );
182
+ }
183
+ }
186
184
#endif
187
185
188
186
if (old == DockWidget && !ForceFocusChangedSignal)
You can’t perform that action at this time.
0 commit comments