Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
66612701
Commit
66612701
authored
Apr 22, 2009
by
Ludovic Fauvet
Committed by
Jean-Baptiste Kempf
Apr 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid MoveEvent action in Drag&Drop
Close #2672 Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
866b8474
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+6
-2
No files found.
modules/gui/qt4/main_interface.cpp
View file @
66612701
...
@@ -1095,6 +1095,10 @@ void MainInterface::dropEvent(QDropEvent *event)
...
@@ -1095,6 +1095,10 @@ void MainInterface::dropEvent(QDropEvent *event)
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
();
const
QMimeData
*
mimeData
=
event
->
mimeData
();
/* D&D of a subtitles file, add it on the fly */
/* D&D of a subtitles file, add it on the fly */
...
@@ -1107,7 +1111,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
...
@@ -1107,7 +1111,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
mimeData
->
urls
()[
0
].
toLocalFile
()
)
),
mimeData
->
urls
()[
0
].
toLocalFile
()
)
),
true
)
)
true
)
)
{
{
event
->
accept
ProposedAction
();
event
->
accept
();
return
;
return
;
}
}
}
}
...
@@ -1125,7 +1129,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
...
@@ -1125,7 +1129,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
s
);
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
s
);
}
}
}
}
event
->
accept
ProposedAction
();
event
->
accept
();
}
}
void
MainInterface
::
dragEnterEvent
(
QDragEnterEvent
*
event
)
void
MainInterface
::
dragEnterEvent
(
QDragEnterEvent
*
event
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment