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

Opening files from command line fails #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run "crunchyfrog somefile.sql", or
2. open a file assigned to CrunchyFrog (text/x-sql) with a file manager
3.

What is the expected output? What do you see instead?
CrunchyFrog should start and open the file in an editor, but it doesn't work.

Please use labels and text to provide additional information.
Traceback (most recent call last):
  File "/usr/bin/crunchyfrog", line 14, in <module>
    cf.cmdline.run()
  File "/usr/lib/python2.5/site-packages/cf/cmdline.py", line 107, in run
    instance.new_editor(fname)
AttributeError: 'MainWindow' object has no attribute 'new_editor'

Original issue reported on code.google.com by albrecht.andi on 7 Feb 2009 at 6:47

GoogleCodeExporter commented 9 years ago
This only happens if no instance of CrunchyFrog is running. If the command line 
has
the chance to hook into an existing process everyting's fine.

Original comment by albrecht.andi on 7 Feb 2009 at 6:54

GoogleCodeExporter commented 9 years ago
Fixed r539

Original comment by albrecht.andi on 7 Feb 2009 at 6:58