mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Fix drop of image files on Windows
This commit is contained in:
parent
96ed89db8a
commit
abbbe11fe7
@ -440,7 +440,7 @@ void MainWindow::onActiveViewChange()
|
||||
|
||||
void MainWindow::onDrop(ui::DragEvent& e)
|
||||
{
|
||||
if (e.hasImage()) {
|
||||
if (e.hasImage() && !e.hasPaths()) {
|
||||
auto* cmd = Commands::instance()->byId(CommandId::NewFile());
|
||||
Params params;
|
||||
params.set("fromDraggedData", "true");
|
||||
|
@ -4487,7 +4487,7 @@ void Timeline::onDrag(ui::DragEvent& e)
|
||||
Widget::onDrag(e);
|
||||
|
||||
// Dropping images into the timeline is not supported yet, so do nothing.
|
||||
if (e.hasImage()) {
|
||||
if (e.hasImage() && !e.hasPaths()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user