aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/MainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-04-27 16:24:27 -0400
committerKen Moore <ken@pcbsd.org>2015-04-27 16:24:27 -0400
commitfe18f5d07e9860d2bc107466381c21e61477f397 (patch)
tree6e15aa96453dbd0a03ce08e8a833640217c1a0b4 /lumina-fm/MainUI.cpp
parentEnable the ability to open lumina-fileinfo for any file/directory. (diff)
downloadlumina-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.cpp8
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);
}
bgstack15