[gnome-commander] Code cleanup
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Code cleanup
- Date: Sat, 27 Jun 2015 20:58:57 +0000 (UTC)
commit 1e29392e2d108a694a9e1c760b5b8c2cdd473189
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sat Jun 27 22:58:08 2015 +0200
Code cleanup
src/dialogs/gnome-cmd-advrename-dialog.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-advrename-dialog.cc b/src/dialogs/gnome-cmd-advrename-dialog.cc
index 57e76ad..6f3e3ad 100644
--- a/src/dialogs/gnome-cmd-advrename-dialog.cc
+++ b/src/dialogs/gnome-cmd-advrename-dialog.cc
@@ -440,7 +440,8 @@ void GnomeCmdAdvrenameDialog::Private::on_dialog_size_allocate (GtkWidget *widge
void GnomeCmdAdvrenameDialog::Private::on_dialog_response (GnomeCmdAdvrenameDialog *dialog, int response_id,
gpointer unused)
{
GtkTreeIter i;
- gchar *old_focused_file_name, *new_focused_file_name;
+ gchar *old_focused_file_name = NULL;
+ gchar *new_focused_file_name = NULL;
switch (response_id)
{
@@ -448,7 +449,6 @@ void GnomeCmdAdvrenameDialog::Private::on_dialog_response (GnomeCmdAdvrenameDial
case GTK_RESPONSE_APPLY:
old_focused_file_name = main_win->fs(ACTIVE)->file_list()->get_focused_file()->get_name();
- new_focused_file_name = 0;
for (gboolean valid_iter=gtk_tree_model_get_iter_first (dialog->files, &i); valid_iter;
valid_iter=gtk_tree_model_iter_next (dialog->files, &i))
{
@@ -481,6 +481,7 @@ void GnomeCmdAdvrenameDialog::Private::on_dialog_response (GnomeCmdAdvrenameDial
{
main_win->fs(ACTIVE)->file_list()->focus_file(new_focused_file_name, TRUE);
g_free (new_focused_file_name);
+ new_focused_file_name = NULL;
}
dialog->update_new_filenames();
dialog->defaults.templates.add(dialog->priv->profile_component->get_template_entry());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]