diff options
author | Jeremias Stotter <jeremias@stotter.eu> | 2023-10-15 17:44:49 +0200 |
---|---|---|
committer | Jeremias Stotter <jeremias@stotter.eu> | 2023-10-15 17:44:49 +0200 |
commit | 497e5a212012ab73cf80f1877af581d1a69a6849 (patch) | |
tree | bfff6d6d3e6741a976db51c7857c1136b08e43da | |
parent | d463382e74245b2d0cba4cf20e428ab60864c11c (diff) | |
download | network-simulator-497e5a212012ab73cf80f1877af581d1a69a6849.tar.gz network-simulator-497e5a212012ab73cf80f1877af581d1a69a6849.tar.bz2 network-simulator-497e5a212012ab73cf80f1877af581d1a69a6849.zip |
Fixed a bug with saving
-rw-r--r-- | gui.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1418,16 +1418,18 @@ void save_response(GObject* save_dialog, GAsyncResult* res, gpointer data) { GFile* result_file = gtk_file_dialog_save_finish (GTK_FILE_DIALOG(save_dialog), res, NULL); + printf("SAVE RESPONSE\n"); if(result_file) { if(save_path) g_free(save_path); save_path = g_file_get_path(result_file); g_object_unref(result_file); - g_object_unref(result_file); - if(save_path) + if(save_path) { + //@todo: check for errors when saving + save_file(save_path); + printf("Saved to\n"); g_free(save_path); - //@todo: check for errors when saving - save_file(save_path); + } actions_since_save = 0; } |