mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
Qt4: bookmarks: don't give an anonymous temporary object to qtu
There may be similar bugs in other places
This commit is contained in:
parent
0820fb75f3
commit
c83ddc49d3
@ -151,8 +151,9 @@ void BookmarksDialog::add()
|
||||
|
||||
if( !input_Control( p_input, INPUT_GET_BOOKMARK, &bookmark ) )
|
||||
{
|
||||
bookmark.psz_name = const_cast<char *>qtu( THEMIM->getIM()->getName() +
|
||||
QString::number( bookmarksList->topLevelItemCount() ) );
|
||||
QString name = THEMIM->getIM()->getName()
|
||||
+ QString::number( bookmarksList->topLevelItemCount() );
|
||||
bookmark.psz_name = const_cast<char *>qtu( name );
|
||||
|
||||
input_Control( p_input, INPUT_ADD_BOOKMARK, &bookmark );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user