diff options
author | Ken Moore <ken@pcbsd.org> | 2014-09-05 09:31:40 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-09-05 09:31:40 -0400 |
commit | 00e562cc7a8d2a680b5b1a80099791fdc1921390 (patch) | |
tree | af7f53610c805bb47f0c796e582d2db78b6304bc /lumina-fm/MainUI.cpp | |
parent | Remove USE_CDRTOOLS (diff) | |
download | lumina-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)
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r-- | lumina-fm/MainUI.cpp | 3 |
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) ) ); |