Changeset 68eacde


Ignore:
Timestamp:
02/24/14 13:36:08 (5 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2
Children:
4394e4a, dd91d89
Parents:
4be3e27
Message:

Make sure that the mime-type shortcuts menu is also actively enabled/disabled depending on whether the application has them available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/mainUI.cpp

    r4be3e27 r68eacde  
    600600    vals << "name" << "icon" << "author" << "website" << "version" << "license" << "description" << "maintainer" << "date" << "arch"; 
    601601    QStringList bools; 
    602     bools << "autoupdate" << "hasdesktopicons" << "hasmenuicons" << "requiresroot"; 
     602    bools << "autoupdate" << "hasdesktopicons" << "hasmenuicons" << "requiresroot" << "hasmimetypes"; 
    603603    vals = PBI->PBIInfo(appID,vals); 
    604604    bools = PBI->PBIInfo(appID,bools); 
     
    615615    bool autoupdate = (bools[0] == "true"); //auto-update enabled 
    616616    bool rootonly = (bools[3] == "true"); //requires root 
     617    bool mimeSC = (bools[4] == "true"); //XDG mime entries available 
    617618    //Create the shortcuts string 
    618     QString shortcuts; 
    619       if(desktopSC && menuSC){ shortcuts = tr("Desktop/Menu"); } 
    620       else if(desktopSC){ shortcuts = tr("Desktop"); } 
    621       else if(menuSC){ shortcuts = tr("Menu"); } 
    622       else{ shortcuts = tr("None"); } 
    623619    sDeskMenu->setEnabled(desktopSC); 
    624620    sMenuMenu->setEnabled(menuSC); 
     621    sMimeMenu->setEnabled(mimeSC); 
    625622    //Now display that info on the UI 
    626623    ui->label_install_app->setText(vals[0]); 
Note: See TracChangeset for help on using the changeset viewer.