Commit c83ddc49 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: bookmarks: don't give an anonymous temporary object to qtu

There may be similar bugs in other places
parent 0820fb75
......@@ -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 );
}
......
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