forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controllers: Fix crash if controller mapping has no module
This fixes two bugs that were caused by mixxxdj#2868: 1. Mixxx didn't check if the JS module path was really a file. If you pass in a directory, QtJSEngine::importModule makes Mixxx crash (at least on Qt 5.15.0) 2. If a mapping does not have JS module associated with it, then the moduleFileInfo always pointed to the controller directory and hence triggered bug 1. This fixes both of these issues and adds some debug assertions to make sure it stays like that.
- Loading branch information
Showing
3 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters