remove more unsafe casts

This commit is contained in:
Lukas Sabota 2020-10-29 16:35:16 -04:00
parent e036298aa2
commit 8230656fd6
1 changed files with 2 additions and 2 deletions

View File

@ -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,