Commit 6faaad11 authored by Johannes Schmid's avatar Johannes Schmid Committed by Johannes Schmid

Fixed critical when no path is set in preferences

2009-03-03  Johannes Schmid  <jhs@gnome.org>

	* plugins/file-manager/plugin.c (file_manager_set_default_uri):
	Fixed critical when no path is set in preferences

svn path=/trunk/; revision=4825
parent 4775e4c0
2009-03-03 Johannes Schmid <jhs@Obelix>
* plugins/file-manager/plugin.c (file_manager_set_default_uri):
Fixed critical when no path is set in preferences
2009-03-02 Sébastien Granjoux <seb.sfo@free.fr>
* plugins/build-basic-autotools/plugin.c:
......@@ -81,14 +81,19 @@ static void
file_manager_set_default_uri (AnjutaFileManager* file_manager)
{
GFile *file;
file = g_file_new_for_path (anjuta_preferences_get (file_manager->prefs, PREF_ROOT));
char *uri = g_file_get_uri (file);
if (uri)
g_object_set (G_OBJECT (file_manager->fv), "base_uri", uri, NULL);
file_manager->have_project = FALSE;
g_free (uri);
g_object_unref (file);
gchar* path = anjuta_preferences_get (file_manager->prefs, PREF_ROOT);
if (path)
{
file = g_file_new_for_path (path);
char *uri = g_file_get_uri (file);
if (uri)
g_object_set (G_OBJECT (file_manager->fv), "base_uri", uri, NULL);
file_manager->have_project = FALSE;
g_free (uri);
g_object_unref (file);
}
g_free(path);
}
static IAnjutaVcs*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment