Browse Source

Fix drag&drop of VST2 plugins under macOS

tags/v2.3.0-RC1
falkTX 3 years ago
parent
commit
572c2aa54d
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      source/frontend/widgets/racklistwidget.py

+ 12
- 0
source/frontend/widgets/racklistwidget.py View File

@@ -252,6 +252,12 @@ class RackListWidget(QListWidget):
self.clearFocus()

def isDragUrlValid(self, filename):
if not filename:
return False

if filename[-1] == '/':
filename = filename[:-1]

lfilename = filename.lower()

if os.path.isdir(filename):
@@ -333,6 +339,12 @@ class RackListWidget(QListWidget):

filename = url.toLocalFile()

if not filename:
continue

if filename[-1] == '/':
filename = filename[:-1]

if not self.host.load_file(filename):
CustomMessageBox(self, QMessageBox.Critical, self.tr("Error"),
self.tr("Failed to load file"),


Loading…
Cancel
Save