[anjuta] Remove a critical warning when closing a project
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] Remove a critical warning when closing a project
- Date: Sun, 25 Aug 2013 15:27:41 +0000 (UTC)
commit 87fa750728e362ac6ba2e7ba28dbb9f9022ea6cc
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sun Aug 25 17:26:58 2013 +0200
Remove a critical warning when closing a project
plugins/project-manager/plugin.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/project-manager/plugin.c b/plugins/project-manager/plugin.c
index 38340a9..c3581c4 100644
--- a/plugins/project-manager/plugin.c
+++ b/plugins/project-manager/plugin.c
@@ -1505,13 +1505,15 @@ static void
project_manager_plugin_close (ProjectManagerPlugin *plugin)
{
AnjutaProfileManager *profile_manager;
+ AnjutaProfile *profile;
GError *error = NULL;
/* Remove project profile */
profile_manager =
anjuta_shell_get_profile_manager (ANJUTA_PLUGIN (plugin)->shell, NULL);
- anjuta_profile_manager_pop (profile_manager, plugin->profile, &error);
+ profile = plugin->profile;
plugin->profile = NULL;
+ anjuta_profile_manager_pop (profile_manager, profile, &error);
if (error)
{
anjuta_util_dialog_error (get_plugin_parent_window (plugin),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]