Skip to content

Commit

Permalink
R n2 Menu Service
Browse files Browse the repository at this point in the history
  • Loading branch information
zakariakov committed Jul 11, 2019
1 parent abcb67f commit 0924afc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
17 changes: 3 additions & 14 deletions elokab-fm/actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1124,21 +1124,10 @@ qDebug()<<"chargeAppService"<<path;
QDir::Files | QDir::NoDotAndDotDot);
while (it.hasNext())
{

// QString prog=it.fileName().section("_",0,0);
// if(!EMimIcon::findProgram(prog))
// continue;
// QString fileName=it.fileName();
// bool exist=false;
// foreach (QString s, mListService) {
// if(QFile(s).fileName()==fileName)
// exist=true;

// }
// if(!exist)
qDebug()<<"chargeAppService"<<it.filePath();
mListService.append(it.filePath());
it.next();
qDebug()<<"chargeAppService"<<it.filePath();
mListService.append(it.filePath());


}

Expand Down
3 changes: 3 additions & 0 deletions elokab-fm/pagewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ void PageWidget::customContextMenu(QPoint)
if(mim!= "application/x-executable" )
menu.addMenu(mActions->menuOpenWith(selectedPath, mim)) ;
}

menu.addAction(mActions->openTerminalAction());
qDebug()<<"count"<<count<<"mim"<<mim<<selectedFiles().at(0);

menu.addMenu(mActions->menuService(selectedFiles(),mim));
}/*else{ // count>1
menu.addMenu(mActions->menuService(selectedFiles(),mim));
Expand Down

0 comments on commit 0924afc

Please sign in to comment.