Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2022-04-05 17:03:47 +0300
committerJaime van Kessel <nallath@gmail.com>2022-04-05 17:03:47 +0300
commit9812dade44431f6ddd9e17d9320a89e5188b8909 (patch)
tree6c32436f413701ce78c33cb41a9d31d0ba3d4338 /resources/qml/Cura.qml
parente86f860a2cb57fae80bdd80ace88fd877d9ad1ca (diff)
Fix drag & drop
Diffstat (limited to 'resources/qml/Cura.qml')
-rw-r--r--resources/qml/Cura.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml
index 54b88b2805..4ee902c436 100644
--- a/resources/qml/Cura.qml
+++ b/resources/qml/Cura.qml
@@ -234,7 +234,7 @@ UM.MainWindow
{
// The drop area is here to handle files being dropped onto Cura.
anchors.fill: parent
- onDropped:
+ onDropped: (drop) =>
{
if (drop.urls.length > 0)
{
@@ -243,7 +243,7 @@ UM.MainWindow
for (var i = 0; i < drop.urls.length; i++)
{
var filename = drop.urls[i];
- if (filename.toLowerCase().endsWith(".curapackage"))
+ if (filename.toString().toLowerCase().endsWith(".curapackage"))
{
// Try to install plugin & close.
CuraApplication.installPackageViaDragAndDrop(filename);