aboutsummaryrefslogtreecommitdiff
path: root/lumina-open
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-02-17 09:38:27 -0500
committerKen Moore <ken@pcbsd.org>2015-02-17 09:38:27 -0500
commitddcd3abc1b3779c832dc6591766f49887e2e43e9 (patch)
tree1c454e0dbc87d4a20d245e560a4786413c157075 /lumina-open
parentOops, fix another crash with desktop plugins: forgot to disable the synctimer... (diff)
downloadlumina-ddcd3abc1b3779c832dc6591766f49887e2e43e9.tar.gz
lumina-ddcd3abc1b3779c832dc6591766f49887e2e43e9.tar.bz2
lumina-ddcd3abc1b3779c832dc6591766f49887e2e43e9.zip
Clean up a few things in Lumina:
1) When finding a file mimetype, try a case-insensitive filter if nothing came out of the case-sensitive search. 2) lumina-fm: when removing a slideshow file, try to automatically go to the next/previous picture instead of index=0; 3) Add a bunch more processEvents() calls to the lumina-fm file operations dialog. This should keep the UI's more responsive and update the visuals more often while running operations on large numbers of files. 4) lumina-fm: Fix another upper->lower case extension issue when checking if a file is supported by Qt's read/write operations.
Diffstat (limited to 'lumina-open')
-rw-r--r--lumina-open/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp
index 0d4a6d26..4dab7ed0 100644
--- a/lumina-open/main.cpp
+++ b/lumina-open/main.cpp
@@ -70,7 +70,9 @@ QString cmdFromUser(int argc, char **argv, QString inFile, QString extension, QS
//First check to see if there is a default for this extension
QString defApp;
if(extension=="mimetype"){
+ //qDebug() << "inFile:" << inFile;
QStringList matches = LXDG::findAppMimeForFile(inFile, true).split("::::"); //allow multiple matches
+ //qDebug() << "Matches:" << matches;
for(int i=0; i<matches.length(); i++){
defApp = LXDG::findDefaultAppForMime(matches[i]);
if(!defApp.isEmpty()){ extension = matches[i]; break; }
bgstack15