|
@@ -154,7 +154,7 @@ String TextEditor::get_name() {
|
|
if (name.empty()) {
|
|
if (name.empty()) {
|
|
// This appears for newly created built-in text_files before saving the scene.
|
|
// This appears for newly created built-in text_files before saving the scene.
|
|
name = TTR("[unsaved]");
|
|
name = TTR("[unsaved]");
|
|
- } else if (text_file->get_path().find("local://") == -1 && text_file->get_path().find("::") == -1) {
|
|
|
|
|
|
+ } else if (text_file->get_path().find("local://") == -1 || text_file->get_path().find("::") == -1) {
|
|
const String &text_file_name = text_file->get_name();
|
|
const String &text_file_name = text_file->get_name();
|
|
if (text_file_name != "") {
|
|
if (text_file_name != "") {
|
|
// If the built-in text_file has a custom resource name defined,
|
|
// If the built-in text_file has a custom resource name defined,
|