Skip to content

Commit

Permalink
Make it so project properties form errors can be corrected (oops)
Browse files Browse the repository at this point in the history
Was broken during last commit.
  • Loading branch information
codebrainz committed Jan 8, 2012
1 parent c85b89a commit 6968a1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/project.c
Expand Up @@ -550,15 +550,18 @@ static void show_project_properties(gboolean show_build)
else
gtk_notebook_set_current_page(GTK_NOTEBOOK(e->notebook), 0);

if (gtk_dialog_run(GTK_DIALOG(e->dialog)) == GTK_RESPONSE_OK)
while (gtk_dialog_run(GTK_DIALOG(e->dialog)) == GTK_RESPONSE_OK)
{
if (update_config(e, FALSE))
{
g_signal_emit_by_name(geany_object, "project-dialog-confirmed", e->notebook);
if (!write_config(TRUE))
SHOW_ERR(_("Project file could not be written"));
else
{
ui_set_statusbar(TRUE, _("Project \"%s\" saved."), app->project->name);
break;
}
}
}

Expand Down

0 comments on commit 6968a1a

Please sign in to comment.