summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
866b847)
Close #2672
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
{
void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
{
+ event->setDropAction( Qt::CopyAction );
+ if( !event->possibleActions() & Qt::CopyAction )
+ return;
+
const QMimeData *mimeData = event->mimeData();
/* D&D of a subtitles file, add it on the fly */
const QMimeData *mimeData = event->mimeData();
/* D&D of a subtitles file, add it on the fly */
mimeData->urls()[0].toLocalFile() ) ),
true ) )
{
mimeData->urls()[0].toLocalFile() ) ),
true ) )
{
- event->acceptProposedAction();
RecentsMRL::getInstance( p_intf )->addRecent( s );
}
}
RecentsMRL::getInstance( p_intf )->addRecent( s );
}
}
- event->acceptProposedAction();
}
void MainInterface::dragEnterEvent(QDragEnterEvent *event)
{
}
void MainInterface::dragEnterEvent(QDragEnterEvent *event)
{