aboutsummaryrefslogtreecommitdiff
path: root/lumina-open
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-18 13:29:11 -0400
committerKen Moore <moorekou@gmail.com>2015-09-18 13:29:11 -0400
commit9c81fd01678605c7c8f284373297399a78716792 (patch)
tree903c4676d76fa1049a218478966cc6bb1451ec62 /lumina-open
parentTurn off a bunch of debugging for the lumina-desktop, and adjust the desktopv... (diff)
downloadlumina-9c81fd01678605c7c8f284373297399a78716792.tar.gz
lumina-9c81fd01678605c7c8f284373297399a78716792.tar.bz2
lumina-9c81fd01678605c7c8f284373297399a78716792.zip
oops, accidentally removed the URL detection from lumina-open with the earlier commit.
Diffstat (limited to 'lumina-open')
-rw-r--r--lumina-open/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp
index eb0cb92c..b63b873f 100644
--- a/lumina-open/main.cpp
+++ b/lumina-open/main.cpp
@@ -204,6 +204,7 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat
//Now check what type of file this is
if(QFile::exists(inFile)){ isFile=true; }
else if(QFile::exists(QDir::currentPath()+"/"+inFile)){isFile=true; inFile = QDir::currentPath()+"/"+inFile;} //account for relative paths
+ else if(QUrl(inFile).isValid() && !inFile.startsWith("/") ){ isUrl=true; }
if( !isFile && !isUrl ){ ShowErrorDialog( argc, argv, QString(QObject::tr("Invalid file or URL: %1")).arg(inFile) ); }
//Determing the type of file (extension)
QString extension;
bgstack15