diff options
author | Ken Moore <ken@pcbsd.org> | 2015-01-05 15:53:43 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-01-05 15:53:43 -0500 |
commit | 744ee07a726e1baa96738771ac5fdfa29567c523 (patch) | |
tree | 0cdb924f1aa32c6392d232a65651c4a5a2ac876e /lumina-open/main.cpp | |
parent | Put another couple quick fixes in: (diff) | |
download | lumina-744ee07a726e1baa96738771ac5fdfa29567c523.tar.gz lumina-744ee07a726e1baa96738771ac5fdfa29567c523.tar.bz2 lumina-744ee07a726e1baa96738771ac5fdfa29567c523.zip |
Fix a couple other minor display issues in lumina-open
Diffstat (limited to 'lumina-open/main.cpp')
-rw-r--r-- | lumina-open/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp index 5bc37dd4..233be999 100644 --- a/lumina-open/main.cpp +++ b/lumina-open/main.cpp @@ -108,7 +108,7 @@ QString cmdFromUser(int argc, char **argv, QString inFile, QString extension, QS LUtils::LoadTranslation(&App,"lumina-open"); LFileDialog w; - if(inFile.startsWith(extension)){ + if(extension=="email" || extension=="webbrowser"){ //URL w.setFileInfo(inFile, extension, false); }else{ @@ -119,7 +119,7 @@ QString cmdFromUser(int argc, char **argv, QString inFile, QString extension, QS w.show(); App.exec(); - if(!w.appSelected){ exit(1); } + if(!w.appSelected){ return ""; } //Return the run path if appropriate if(!w.appPath.isEmpty()){ path = w.appPath; } //Just do the default application registration here for now @@ -251,6 +251,7 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat //Find out the proper application to use this file/directory useInputFile=true; cmd = cmdFromUser(argc, argv, inFile, extension, path, showDLG); + if(cmd.isEmpty()){ return; } } } //Now assemble the exec string (replace file/url field codes as necessary) |