Skip to content

Commit

Permalink
Addons: Fix installing official addons through drag & drop
Browse files Browse the repository at this point in the history
Installing official addons through drag & drop doesn work from cleaning the addons names onwards. The mismatch occurs when we compare cleaned addon name with the zip file name. Since the officical addon name was cleaned it doesn't match the uncleaned zip filename.
  • Loading branch information
nikicc committed Jul 19, 2017
1 parent 4d80ffb commit 6bb4844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/canvas/application/addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def dropEvent(self, event):
if path.endswith(self.ADDON_EXTENSIONS):
name, vers, summary, descr = (get_meta_from_archive(path) or
(os.path.basename(path), '', '', ''))
names.append(name)
names.append(cleanup(name))
packages.append(
Installable(name, vers, summary,
descr or summary, path, [path]))
Expand Down

0 comments on commit 6bb4844

Please sign in to comment.