Commit 614bb164 authored by Steve Borho's avatar Steve Borho
Browse files

gtklib: add missing import of gdialog

--HG--
branch : stable
parent 0cd48f6b7d34
......@@ -168,6 +168,7 @@ def open_with_editor(ui, file, parent=None):
ui.config('ui', 'editor') or
os.environ.get('EDITOR', 'vi'))
if os.path.basename(editor) in ('vi', 'vim', 'hgeditor'):
from tortoisehg.hgtk import gdialog
gdialog.Prompt(_('No visual editor configured'),
_('Please configure a visual editor.'), parent).run()
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment