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

Fix dangerous use of qtu() on anonymous QString

parent d455fdfb
......@@ -1003,9 +1003,9 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
/* D&D of a subtitles file, add it on the fly */
if( mimeData->urls().size() == 1 && THEMIM->getIM()->hasInput() )
{
if( !input_AddSubtitle( THEMIM->getInput(),
qtu( toNativeSeparators( mimeData->urls()[0].toLocalFile() ) ),
true ) )
QString s = toNativeSeparators( mimeData->urls()[0].toLocalFile() );
if( s.length() > 0
&& input_AddSubtitle( THEMIM->getInput(), qtu(s), true ) == 0 )
{
event->accept();
return;
......
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