about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-06-10 16:55:17 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-06-10 16:55:17 +0200
commit158cfaface1b2f09291e6b158e8a8748e84b0d7a (patch)
treed4a3c242b2a1c3e9c71964911f46dc50e2e57de2
parentb7914c4c6ac89170f3c5b4dab8f801c3c7d1c7d7 (diff)
downloadprofani-tty-158cfaface1b2f09291e6b158e8a8748e84b0d7a.tar.gz
editor: dont check whether compose file exists
No need to check anymore since we are now saving per account.
Like this we also could reopen the same file again.
-rw-r--r--src/command/cmd_funcs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 5f205191..4f68f26c 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -9424,12 +9424,6 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args)
     free(jid);
     g_free(path);
 
-    // Check if file exists and create file
-    if (g_file_test(filename, G_FILE_TEST_EXISTS)) {
-        cons_show("Editor: temp file exists already");
-        return TRUE;
-    }
-
     GError* creation_error = NULL;
     GFile* file = g_file_new_for_path(filename);
     GFileOutputStream* fos = g_file_create(file, G_FILE_CREATE_PRIVATE, NULL, &creation_error);