Fix drop of image files on Windows

This commit is contained in:
Martín Capello 2024-10-07 16:22:11 -03:00
parent 96ed89db8a
commit abbbe11fe7
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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;
}