diff --git a/desmume/src/frontend/posix/gtk/main.cpp b/desmume/src/frontend/posix/gtk/main.cpp index 334f32654..3e012a0b5 100644 --- a/desmume/src/frontend/posix/gtk/main.cpp +++ b/desmume/src/frontend/posix/gtk/main.cpp @@ -1835,7 +1835,7 @@ static void ImportBackupMemoryDialog(GSimpleAction *action, GVariant *parameter, gchar *sPath = g_file_get_path(file); if(MMU_new.backupDevice.importData(sPath) == false ) { - GtkWidget *pDialog = gtk_message_dialog_new(GTK_WINDOW(pFileSelection), + GtkWidget *pDialog = gtk_message_dialog_new(GTK_WINDOW(pWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, @@ -1883,7 +1883,7 @@ static void ExportBackupMemoryDialog(GSimpleAction *action, GVariant *parameter, gchar *sPath = g_file_get_path(file); if(MMU_new.backupDevice.exportData(sPath) == false ) { - GtkWidget *pDialog = gtk_message_dialog_new(GTK_WINDOW(pFileSelection), + GtkWidget *pDialog = gtk_message_dialog_new(GTK_WINDOW(pWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,