File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,8 @@ void ProxyWindowAttached::updateWindow() {
542
542
void ProxyWindowAttached::setWindow (ProxyWindowBase* window) {
543
543
if (window == this ->mWindow ) return ;
544
544
this ->mWindow = window;
545
- this ->mWindowInterface = window ? qobject_cast<WindowInterface*>(window->parent ()) : nullptr ;
545
+ auto * parentInterface = window ? qobject_cast<WindowInterface*>(window->parent ()) : nullptr ;
546
+ this ->mWindowInterface = parentInterface ? static_cast <QObject*>(parentInterface) : window;
546
547
emit this ->windowChanged ();
547
548
}
548
549
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ class ProxyWindowAttached: public QsWindowAttached {
220
220
221
221
private:
222
222
ProxyWindowBase* mWindow = nullptr ;
223
- WindowInterface * mWindowInterface = nullptr ;
223
+ QObject * mWindowInterface = nullptr ;
224
224
225
225
void setWindow (ProxyWindowBase* window);
226
226
};
You can’t perform that action at this time.
0 commit comments