Skip to content

Commit 36cdf4a

Browse files
Fixed warnings on MacOS: replaced QApplication::setActiveWindow(this); with QWidget::activateWindow
1 parent 85f65b3 commit 36cdf4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FloatingDockContainer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ void CFloatingDockContainer::moveFloating()
10101010
// the main window as the active window for some reason. This fixes
10111011
// that by resetting the active window to the floating widget after
10121012
// updating the overlays.
1013-
QApplication::setActiveWindow(this);
1013+
activateWindow();
10141014
#endif
10151015
break;
10161016
default:
@@ -1248,7 +1248,7 @@ void CFloatingDockContainer::moveEvent(QMoveEvent *event)
12481248
// the main window as the active window for some reason. This fixes
12491249
// that by resetting the active window to the floating widget after
12501250
// updating the overlays.
1251-
QApplication::setActiveWindow(this);
1251+
activateWindow();
12521252
break;
12531253
default:
12541254
break;

0 commit comments

Comments
 (0)