win w
This commit is contained in:
8
qt.py
8
qt.py
@@ -83,8 +83,7 @@ class Plugin(BalPlugin):
|
|||||||
title=_("Success"),
|
title=_("Success"),
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
top_level_window= window.top_level_window
|
w = BalWindow(self, window)
|
||||||
w = BalWindow(self, top_level_window)
|
|
||||||
self.bal_windows[top_level_window.winId] = w
|
self.bal_windows[top_level_window.winId] = w
|
||||||
for child in window.children():
|
for child in window.children():
|
||||||
if isinstance(child, QMenuBar):
|
if isinstance(child, QMenuBar):
|
||||||
@@ -152,9 +151,8 @@ class Plugin(BalPlugin):
|
|||||||
def get_window(self, window):
|
def get_window(self, window):
|
||||||
w = self.bal_windows.get(window.winId, None)
|
w = self.bal_windows.get(window.winId, None)
|
||||||
if w is None:
|
if w is None:
|
||||||
win=w.top_level_window()
|
w = BalWindow(self, window)
|
||||||
w = BalWindow(self, win)
|
self.bal_windows[window.winId] = w
|
||||||
self.bal_windows[win.winId] = w
|
|
||||||
return w
|
return w
|
||||||
|
|
||||||
def requires_settings(self):
|
def requires_settings(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user