andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
4 stars 2 forks source link

Native shell confuses some widgets #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some widgets (connection menu, statusbar and maybe more) get confused by
native shell. They still expect only editor widgets in the main view.

Example traceback:

{{{
Traceback (most recent call last):
  File "/storage/devel/cf/default/cf/ui/mainwindow.py", line 819, in
set_editor_active
    self.tb_conn_chooser.set_editor(editor)
  File "/storage/devel/cf/default/cf/ui/widgets/__init__.py", line 80, in
set_editor
    self.rebuild_menu()
  File "/storage/devel/cf/default/cf/ui/widgets/__init__.py", line 64, in
rebuild_menu
    rebuild_connection_menu(self._menu, self.mainwin, self._editor)
  File "/storage/devel/cf/default/cf/ui/widgets/__init__.py", line 149, in
rebuild_connection_menu
    action.set_sensitive(editor.connection is not None)
AttributeError: 'NativeShell' object has no attribute 'connection'
}}}

Original issue reported on code.google.com by albrecht.andi on 30 May 2009 at 8:31

GoogleCodeExporter commented 9 years ago
This issue was closed by efd7e8d547.

Original comment by albrecht.andi on 11 Jul 2009 at 5:25