Fix view_ids for board when empty

(transplanted from 508f94b426b1f816cabceb6c3f333d992afb1794)
This commit is contained in:
Cédric Krier committed 2009-12-21 11:18:54 +01:00
1 parent b1e8fc7055
commit 37f0ad422f
1 file changed
+2 -2
+2 -2
View File
@@ -31,8 +31,8 @@ class Window(object):
Main.get_main().win_add(win)
elif view_type == 'board':
from board import Board
win = Board(window, view_ids[0], context=context, name=name,
auto_refresh=auto_refresh)
win = Board(window, view_ids and view_ids[0] or None,
context=context, name=name, auto_refresh=auto_refresh)
Main.get_main().win_add(win)
else:
import logging