aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremias Stotter <jeremias@stotter.eu>2023-10-15 17:44:49 +0200
committerJeremias Stotter <jeremias@stotter.eu>2023-10-15 17:44:49 +0200
commit497e5a212012ab73cf80f1877af581d1a69a6849 (patch)
treebfff6d6d3e6741a976db51c7857c1136b08e43da
parentd463382e74245b2d0cba4cf20e428ab60864c11c (diff)
downloadnetwork-simulator-497e5a212012ab73cf80f1877af581d1a69a6849.tar.gz
network-simulator-497e5a212012ab73cf80f1877af581d1a69a6849.tar.bz2
network-simulator-497e5a212012ab73cf80f1877af581d1a69a6849.zip
Fixed a bug with saving
-rw-r--r--gui.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gui.c b/gui.c
index 9226622..e2f7dd5 100644
--- a/gui.c
+++ b/gui.c
@@ -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;
}
Jeremias Stotters git repositories generated by CGIT