gnome-commander r1472 - in branches/gcmd-1-3: . src



Author: epiotr
Date: Sun Jan  6 22:36:32 2008
New Revision: 1472
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1472&view=rev

Log:
Fix for starting the new document

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/gnome-cmd-file-selector.cc

Modified: branches/gcmd-1-3/ChangeLog
==============================================================================
--- branches/gcmd-1-3/ChangeLog	(original)
+++ branches/gcmd-1-3/ChangeLog	Sun Jan  6 22:36:32 2008
@@ -1,3 +1,8 @@
+2008-01-06  Piotr Eljasiak  <epiotr use pl>
+
+	* src/gnome-cmd-file-selector.cc:
+	Fix for starting the new document
+
 2008-01-04  Piotr Eljasiak  <epiotr use pl>
 
 	* src/gnome-cmd-advrename-dialog.cc:

Modified: branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	Sun Jan  6 22:36:32 2008
@@ -1461,14 +1461,7 @@
         return;
 
     // create a command with an empty argument to the editor
-    gchar *cmd = g_strdup (gnome_cmd_data_get_editor ());
-    gint l = strlen(cmd);
-    for (gint i=0; i<l; i++)
-        if (cmd[i] == ' ')
-        {
-            cmd[i] = '\0';
-            break;
-        }
+    gchar *cmd = g_strdup_printf (gnome_cmd_data_get_editor (), "");
 
     gchar *dpath = gnome_cmd_file_get_real_path (GNOME_CMD_FILE (fs->priv->cwd));
     run_command_indir (cmd, dpath, FALSE);



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