diff options
author | Ken Moore <ken@pcbsd.org> | 2015-04-27 16:24:27 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-04-27 16:24:27 -0400 |
commit | fe18f5d07e9860d2bc107466381c21e61477f397 (patch) | |
tree | 6e15aa96453dbd0a03ce08e8a833640217c1a0b4 /lumina-fm/MainUI.cpp | |
parent | Enable the ability to open lumina-fileinfo for any file/directory. (diff) | |
download | lumina-fe18f5d07e9860d2bc107466381c21e61477f397.tar.gz lumina-fe18f5d07e9860d2bc107466381c21e61477f397.tar.bz2 lumina-fe18f5d07e9860d2bc107466381c21e61477f397.zip |
have lumina-fm use the new favorites system for checking if a file is a favorite.
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r-- | lumina-fm/MainUI.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index 5efbbbad..cf5e2fc0 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -1008,13 +1008,7 @@ void MainUI::ItemSelectionChanged(){ if(sel.length()==1){ itname = sel[0].fileName(); } bool ok = !itname.isEmpty() && (getCurrentDir()!=QDir::homePath()+"/Desktop"); if(ok){ - if(QFile::exists(favdir+itname)){ - //Make sure this favorite does not already point to the current file - QFileInfo info(favdir+itname); - if(info.isSymLink() && info.exists()){ - ok = false; //still an active favorite - do not allow replacement - } - } + ok = !LUtils::isFavorite(sel[0]); } ui->tool_act_fav->setEnabled(ok); } |