aboutsummaryrefslogtreecommitdiff
path: root/lumina-open/LFileDialog.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-03-11 11:23:42 -0500
committerKen Moore <moorekou@gmail.com>2016-03-11 11:23:42 -0500
commit5cca7eda2a00846ec4c6c7493b0c8046e4a67853 (patch)
treef1d5b0983d6fea2fca39b9e392176a84d49588fd /lumina-open/LFileDialog.cpp
parentSignificant update to mime-type handling. (diff)
downloadlumina-5cca7eda2a00846ec4c6c7493b0c8046e4a67853.tar.gz
lumina-5cca7eda2a00846ec4c6c7493b0c8046e4a67853.tar.bz2
lumina-5cca7eda2a00846ec4c6c7493b0c8046e4a67853.zip
Fix up the detection of sloppy URL's (www.<something>) - treat them as http URL's.
Diffstat (limited to 'lumina-open/LFileDialog.cpp')
-rw-r--r--lumina-open/LFileDialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lumina-open/LFileDialog.cpp b/lumina-open/LFileDialog.cpp
index 234a48b7..c0417935 100644
--- a/lumina-open/LFileDialog.cpp
+++ b/lumina-open/LFileDialog.cpp
@@ -57,6 +57,7 @@ QString LFileDialog::getDefaultApp(QString extension){
void LFileDialog::setDefaultApp(QString extension, QString appFile){
if(extension.contains("/")){
//mime type default: set on the system itself
+ if(appFile.endsWith(".desktop")){ appFile = appFile.section("/",-1); } //only need the relative path
LXDG::setDefaultAppForMime(extension, appFile);
}else{
QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina");
bgstack15