(#814) require a valid announce URL when creating torrents

This commit is contained in:
Charles Kerr
2008-03-24 15:58:06 +00:00
parent 363a583391
commit 910d77ae12
6 changed files with 85 additions and 50 deletions

View File

@@ -92,12 +92,12 @@ refresh_cb ( gpointer user_data )
{
if( ui->builder->failed )
{
const char * reason = ui->builder->abortFlag
? _("Torrent creation cancelled")
: _("Torrent creation failed");
char * reason = ui->builder->abortFlag
? g_strdup( _( "Torrent creation cancelled" ) )
: g_strdup_printf( _( "Torrent creation failed: %s" ), ui->builder->error );
gtk_progress_bar_set_text( p, reason );
gtk_progress_bar_set_fraction( p, 0 );
g_free( reason );
}
else
{