File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -325,22 +325,22 @@ void CDockFocusController::notifyWidgetOrAreaRelocation(QWidget* DroppedWidget)
325
325
}
326
326
327
327
CDockWidget* DockWidget = qobject_cast<CDockWidget*>(DroppedWidget);
328
- if (DockWidget)
329
- {
330
- d->ForceFocusChangedSignal = true ;
331
- CDockManager::setWidgetFocus (DockWidget->tabWidget ());
332
- return ;
333
- }
328
+ if (!DockWidget)
329
+ {
330
+ CDockAreaWidget* DockArea = qobject_cast<CDockAreaWidget*>(DroppedWidget);
331
+ if (DockArea)
332
+ {
333
+ DockWidget = DockArea->currentDockWidget ();
334
+ }
335
+ }
334
336
335
- CDockAreaWidget* DockArea = qobject_cast<CDockAreaWidget*>(DroppedWidget);
336
- if (!DockArea)
337
- {
338
- return ;
339
- }
337
+ if (!DockWidget)
338
+ {
339
+ return ;
340
+ }
340
341
341
- DockWidget = DockArea->currentDockWidget ();
342
342
d->ForceFocusChangedSignal = true ;
343
- CDockManager::setWidgetFocus (DockWidget->tabWidget ());
343
+ CDockManager::setWidgetFocus (DockWidget->tabWidget ());
344
344
}
345
345
346
346
You can’t perform that action at this time.
0 commit comments