Commit c58eadf3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

qt: discard bookmark byte offset

This is useless given that the time offset is set and the input core
ignores the byte offset when the time offset is set. I think the column
should probably be removed completely.
parent 314fbdba
......@@ -141,7 +141,7 @@ void BookmarksDialog::update()
// List with the differents elements of the row
QStringList row;
row << QString( qfu( pp_bookmarks[i]->psz_name ) );
row << QString::number( pp_bookmarks[i]->i_byte_offset );
row << qfu("-");
int total = pp_bookmarks[i]->i_time_offset/ 1000000;
int hour = total / (60*60);
int min = (total - hour*60*60) / 60;
......@@ -240,8 +240,6 @@ void BookmarksDialog::edit( QTreeWidgetItem *item, int column )
free( p_seekpoint->psz_name );
p_seekpoint->psz_name = strdup( qtu( item->text( column ) ) );
}
else if( column == 1 )
p_seekpoint->i_byte_offset = atoi( qtu( item->text( column ) ) );
else if( column == 2 )
{
fields = item->text( column ).split( ":", QString::SkipEmptyParts );
......
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