summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanikoyes <sanikoyes@163.com>2014-04-23 09:28:23 +0800
committersanikoyes <sanikoyes@163.com>2014-04-23 09:28:23 +0800
commitccfeb53005cc6685aad71dbc742b305575c305e3 (patch)
treeab7bfb5662ba817a0db703ee795571f6a01dd140
parent6f1410a8370cfb0b6fcbe072214ce1268cefdf04 (diff)
Fix export translation(can't save pot file)
-rw-r--r--tools/editor/editor_node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index e799c103d0..8048f2573e 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -1779,6 +1779,8 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) {
bool relpaths = (scene->has_meta("__editor_relpaths__") && scene->get_meta("__editor_relpaths__").operator bool());
+ file->set_mode(FileDialog::MODE_SAVE_FILE);
+
file->set_current_path(cpath);
file->set_title("Save Translatable Strings");
file->popup_centered_ratio();