[gnome-commander] advrename profiles: set default template string to "$N"



commit a0c353fcad93424e4325cb2b650219092e50206c
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Fri May 22 17:04:18 2009 +0200

    advrename profiles: set default template string to "$N"
---
 ChangeLog                         |    7 +++++++
 src/gnome-cmd-advrename-dialog.cc |    2 --
 src/gnome-cmd-data.cc             |    2 +-
 src/gnome-cmd-data.h              |    5 +++--
 4 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9953726..feea05b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-05-22  Piotr Eljasiak  <epiotr use pl>
+
+	* src/gnome-cmd-advrename-dialog.cc:
+	* src/gnome-cmd-data.cc:
+	* src/gnome-cmd-data.h:
+	advrename profiles: set default template string to "$N"
+
 2009-05-19  Piotr Eljasiak  <epiotr use pl>
 
 	* src/gnome-cmd-advrename-dialog.cc:
diff --git a/src/gnome-cmd-advrename-dialog.cc b/src/gnome-cmd-advrename-dialog.cc
index bdf019d..5313c4e 100644
--- a/src/gnome-cmd-advrename-dialog.cc
+++ b/src/gnome-cmd-advrename-dialog.cc
@@ -466,9 +466,7 @@ void GnomeCmdAdvrenameDialog::Private::on_dialog_response (GnomeCmdAdvrenameDial
 
         case GCMD_RESPONSE_RESET:
             dialog->defaults.default_profile.reset();
-            dialog->defaults.default_profile.template_string = "$N";
             dialog->priv->profile_component->update();
-
             break;
 
         default :
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index dddecb9..84a75f9 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -79,7 +79,7 @@ DICT<guint> gdk_modifiers_names;
 void GnomeCmdData::AdvrenameConfig::Profile::reset()
 {
     name.clear();
-    template_string.clear();
+    template_string = "$N";
     regexes.clear();
     counter_start = counter_width = counter_step = 1;
     case_conversion = 0;
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index fe99c00..3d98691 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -83,8 +83,9 @@ struct GnomeCmdData
 
             void reset();
 
-            Profile(): counter_start(1), counter_width(1), counter_step(1),
-                      case_conversion(0), trim_blanks(3)                      {}
+            Profile(): template_string("$N"),
+                       counter_start(1), counter_width(1), counter_step(1),
+                       case_conversion(0), trim_blanks(3)                     {}
         };
 
         gint width, height;



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