Do not show confirm message when creating text block from menu.
authorSergey Sharybin <sergey.vfx@gmail.com>
Sat, 27 Aug 2011 12:01:01 +0000 (12:01 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sat, 27 Aug 2011 12:01:01 +0000 (12:01 +0000)
release/scripts/startup/bl_ui/space_text.py

index 300211a26bf081da6c3eda67ec93718a055f9121..12e07c19ca1af210ac9dd86dac91f573334101c5 100644 (file)
@@ -172,7 +172,9 @@ class TEXT_MT_text(Menu):
         st = context.space_data
         text = st.text
 
+        layout.operator_context = 'EXEC_AREA'
         layout.operator("text.new")
+        layout.operator_context = 'INVOKE_AREA'
         layout.operator("text.open")
 
         if text: