[gnome-commander/ConvertWarningsToErrors: 2/5] Removes gcc warning about variable shadowing



commit 4054470610d203d7685d8254ad4046270c3fed3b
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Apr 15 18:38:40 2017 +0200

    Removes gcc warning about variable shadowing

 src/dialogs/gnome-cmd-prepare-xfer-dialog.cc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc b/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc
index 114b24a..4c3db8f 100644
--- a/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc
+++ b/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc
@@ -188,14 +188,14 @@ static void on_ok (GtkButton *button, GnomeCmdPrepareXferDialog *dialog)
                 // Nothing exists, ask the user if a new directory might be suitable in the path that he 
specified
                 gchar *msg = g_strdup_printf (_("The directory '%s' doesn't exist, do you want to create 
it?"),
                                               g_path_get_basename (dest_path));
-                GtkWidget *dialog = gtk_message_dialog_new (*main_win,
+                GtkWidget *dir_dialog = gtk_message_dialog_new (*main_win,
                                                             (GtkDialogFlags) 0,
                                                             GTK_MESSAGE_QUESTION,
                                                             GTK_BUTTONS_OK_CANCEL,
                                                             "%s",
                                                             msg);
-                gint choice = gtk_dialog_run (GTK_DIALOG (dialog));
-                gtk_widget_destroy (dialog);
+                gint choice = gtk_dialog_run (GTK_DIALOG (dir_dialog));
+                gtk_widget_destroy (dir_dialog);
                 g_free (msg);
 
                 if (choice == GTK_RESPONSE_OK)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]