noklesta / SublimeQuickFileCreator

Quick File Creator plugin for Sublime Text
64 stars 26 forks source link

Add check that view exists for panel #7

Closed twolfson closed 11 years ago

twolfson commented 11 years ago

There was a bug that the quick_panel prompt would not open when:

The error that was coming up was:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 339, in run_
  File "./SublimeQuickFileCreator.py", line 108, in run
  File "./SublimeQuickFileCreator.py", line 20, in doCommand
  File "./SublimeQuickFileCreator.py", line 68, in move_current_directory_to_top
AttributeError: 'NoneType' object has no attribute 'file_name'

This pull request patches the bug as described above.

noklesta commented 11 years ago

Great, thanks!