Skip to content

Commit

Permalink
Open with doubleclick on file
Browse files Browse the repository at this point in the history
  • Loading branch information
hsstraub committed Jul 22, 2016
1 parent 9a9a841 commit fa33a84
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions Source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@ void TerpstraSysExApplication::initialise(const String& commandLine)
{
// commandLine is supposed to contain a file name. Try to open it.
currentFile = File(commandLine);
openFromCurrentFile();

if (!currentFile.existsAsFile())
{
// If file name is with quotes, try removing the quotes
if (commandLine.startsWithChar('"') && commandLine.endsWithChar('"'))
currentFile = File(commandLine.substring(1, commandLine.length() - 1));
}

openFromCurrentFile();
}
}

Expand Down Expand Up @@ -321,7 +329,7 @@ bool TerpstraSysExApplication::aboutTerpstraSysEx()
// XXX Version: there are the internal constants JUCE_APP_VERSION and JUCE_APP_VERSION_HEX...
m << "Terpstra SysEx Utility" << newLine
<< newLine
<< "Version 0.3.0" << newLine
<< "Version 0.3.1" << newLine
<< newLine
<< "Original design @ Dylan Horvath 2007" << newLine
<< "Reengineered @ Hans Straub 2014" << newLine
Expand Down
2 changes: 1 addition & 1 deletion TerpstraSysEx.jucer
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<JUCERPROJECT id="oPBJmN" name="TerpstraSysEx" projectType="guiapp" version="0.3.0"
<JUCERPROJECT id="oPBJmN" name="TerpstraSysEx" projectType="guiapp" version="0.3.1"
bundleIdentifier="HansStraub.Terpstra.TerpstraSysEx" includeBinaryInAppConfig="1"
jucerVersion="4.2.1" companyName="Hans Straub">
<MAINGROUP id="obWLli" name="TerpstraSysEx">
Expand Down

0 comments on commit fa33a84

Please sign in to comment.