OSDN Git Service

Regist WinWrap reference to windowlist, not widget reference.
[fukui-no-namari/fukui-no-namari.git] / src / Hage1 / thread_window.py
index 25b8865..c28d5e4 100644 (file)
@@ -42,14 +42,14 @@ def open_thread(bbs, board, thread):
         raise ValueError, "parameter must not be empty"
 
     key = "/" + bbs + "/" + board + "/" + thread
-    window = windowlist.get_window(key)
-    if window:
+    winwrap = windowlist.get_window(key)
+    if winwrap:
         # already opened
-        window.present()
+        winwrap.window.present()
         pass
     else:
         win_wrap = WinWrap(bbs, board, thread)
-        windowlist.window_created(key, win_wrap.window)
+        windowlist.window_created(key, win_wrap)
 
 
 class WinWrap: