aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/Browser.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2019-04-27 09:02:04 -0400
committerKen Moore <ken@ixsystems.com>2019-04-27 09:02:04 -0400
commit205749956e0a4ed4a839315eede741b37616118b (patch)
tree31b4763ed27bffe3b8f2040de0667c0b62fdcebb /src-qt5/desktop-utils/lumina-fm/Browser.cpp
parentRemove the compositing with gpu accel only option. Not used in the backend an... (diff)
downloadlumina-205749956e0a4ed4a839315eede741b37616118b.tar.gz
lumina-205749956e0a4ed4a839315eede741b37616118b.tar.bz2
lumina-205749956e0a4ed4a839315eede741b37616118b.zip
Ensure that the browser path is always canonical.
Also ensure that glib is not used for Qt.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/Browser.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/Browser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/Browser.cpp b/src-qt5/desktop-utils/lumina-fm/Browser.cpp
index 02f1fc89..26d95faa 100644
--- a/src-qt5/desktop-utils/lumina-fm/Browser.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/Browser.cpp
@@ -178,7 +178,9 @@ void Browser::loadDirectory(QString dir, bool force){
if(dir.isEmpty()){ return; } //nothing to do - nothing previously loaded
updateList.clear();
//qDebug() << "Load Directory" << dir;
- if(dir.endsWith("/")){ dir.chop(1); }
+ //Ensure we have the canonical path for this dir
+ dir = QDir(dir).canonicalPath();
+ //if(dir.endsWith("/")){ dir.chop(1); }
bool dirupdate = true;
if(currentDir != dir){ //let the main widget know to clear all current items (completely different dir)
//qDebug() << " - different Directory";
bgstack15