diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/menus/project.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gui/menus/project.c b/src/gui/menus/project.c index 6b7e6b4..a85e78f 100644 --- a/src/gui/menus/project.c +++ b/src/gui/menus/project.c @@ -221,14 +221,6 @@ static void mcb_project_add_shellcode(GtkMenuItem *menuitem, GMenuBar *bar) free(dir); } - if (g_study_project_get_filename(get_current_project()) != NULL) - { - dir = strdup(g_study_project_get_filename(get_current_project())); - dir = dirname(dir); - gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), dir); - free(dir); - } - if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); @@ -287,14 +279,6 @@ static void mcb_project_add_binary_file(GtkMenuItem *menuitem, GMenuBar *bar) free(dir); } - if (g_study_project_get_filename(get_current_project()) != NULL) - { - dir = strdup(g_study_project_get_filename(get_current_project())); - dir = dirname(dir); - gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), dir); - free(dir); - } - if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); |