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