Prevent activation of view UI when no database is loaded

svn: r16106
This commit is contained in:
Nick Hall 2010-11-01 22:20:23 +00:00
parent 443fae3890
commit 66252365f5

View File

@ -1127,6 +1127,9 @@ class ViewManager(CLIManager):
"""
Perform necessary actions when a page is changed.
"""
if not self.dbstate.open:
return
self.__disconnect_previous_page()
self.active_page = self.pages[page_num]