From fe18f5d07e9860d2bc107466381c21e61477f397 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 27 Apr 2015 16:24:27 -0400 Subject: have lumina-fm use the new favorites system for checking if a file is a favorite. --- lumina-fm/MainUI.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lumina-fm/MainUI.cpp') 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); } -- cgit