[maemo-commits] [maemo-commits] r9007 - projects/haf/branches/hildon-fm/1.x/hildon-fm
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Tue Jan 9 17:30:45 EET 2007
- Previous message: [maemo-commits] r9006 - projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop
- Next message: [maemo-commits] r9008 - in projects/haf/branches/hildon-fm/1.x: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: marivoll
Date: 2007-01-09 17:30:44 +0200 (Tue, 09 Jan 2007)
New Revision: 9007
Modified:
projects/haf/branches/hildon-fm/1.x/hildon-fm/hildon-file-chooser-dialog.c
Log:
* hildon-fm/hildon-file-chooser-dialog.c (set_stub_and_ext): Reset
ext_name to NULL instead of keeping the old extension
around. (N50196)
Modified: projects/haf/branches/hildon-fm/1.x/hildon-fm/hildon-file-chooser-dialog.c
===================================================================
--- projects/haf/branches/hildon-fm/1.x/hildon-fm/hildon-file-chooser-dialog.c 2007-01-09 15:19:59 UTC (rev 9006)
+++ projects/haf/branches/hildon-fm/1.x/hildon-fm/hildon-file-chooser-dialog.c 2007-01-09 15:30:44 UTC (rev 9007)
@@ -463,12 +463,10 @@
char *dot;
gboolean is_folder;
- /* XXX - We do not always reset the extension here since the old
- code didn't do it and some code out there might rely on it
- not being done.
- */
g_free (priv->stub_name);
priv->stub_name = g_strdup (name);
+ g_free (priv->ext_name);
+ priv->ext_name = NULL;
/* XXX - Determine whether we are talking about a folder here. If
action is CREATE_FOLDER, the dialog might actually be used
@@ -548,7 +546,7 @@
dot = _hildon_file_system_search_extension (priv->stub_name,
FALSE, is_folder);
-
+
/* Is there a dot, but not as first character */
if (dot && dot != priv->stub_name) {
g_free(priv->ext_name);
- Previous message: [maemo-commits] r9006 - projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop
- Next message: [maemo-commits] r9008 - in projects/haf/branches/hildon-fm/1.x: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
