aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-09-05 09:31:40 -0400
committerKen Moore <ken@pcbsd.org>2014-09-05 09:31:40 -0400
commit00e562cc7a8d2a680b5b1a80099791fdc1921390 (patch)
treeaf7f53610c805bb47f0c796e582d2db78b6304bc
parentRemove USE_CDRTOOLS (diff)
downloadlumina-00e562cc7a8d2a680b5b1a80099791fdc1921390.tar.gz
lumina-00e562cc7a8d2a680b5b1a80099791fdc1921390.tar.bz2
lumina-00e562cc7a8d2a680b5b1a80099791fdc1921390.zip
Hide any external devices that are mounted on hidden directories in the file manager. These devices are generally for system-usage and not user browsing (such as the FUSE mountpoint for .gvfs)
-rw-r--r--lumina-fm/MainUI.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp
index 1c61e0d9..9e6039a7 100644
--- a/lumina-fm/MainUI.cpp
+++ b/lumina-fm/MainUI.cpp
@@ -252,6 +252,9 @@ void MainUI::RebuildDeviceMenu(){
//Now add them to the menu appropriately
for(int i=0; i<devs.length(); i++){
+ //Skip hidden mount points (usually only for system usage - not user browsing)
+ if(devs[i].section("::::",2,2).section("/",-1).startsWith(".")){ continue; }
+ //Create entry for this device
QAction *act = new QAction(devs[i].section("::::",2,2).section("/",-1),this);
act->setWhatsThis(devs[i].section("::::",2,2)); //full path to mountpoint
act->setToolTip( QString(tr("Filesystem: %1")).arg( devs[i].section("::::",1,1) ) );
bgstack15