Changeset 51d6c4b


Ignore:
Timestamp:
07/09/13 12:07:44 (18 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
033e9a0
Parents:
5c0de09
git-author:
Ken Moore <ken@…> (07/09/13 11:50:52)
git-committer:
Ken Moore <ken@…> (07/09/13 12:07:44)
Message:

Have the AppCafe? use the selected item if none are checked, and try out a fix for crashes if there are no PBI's installed and you cancel the only download.

File:
1 edited

Legend:

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

    r9a7d00b8 r51d6c4b  
    190190    } 
    191191  } 
     192  //If no items checked, use the item that is selected instead 
     193  if(output.isEmpty()){ 
     194    //Make sure that an item is selected 
     195    if(ui->tree_install_apps->topLevelItemCount() >0){ 
     196      output << ui->tree_install_apps->currentItem()->whatsThis(0);   
     197    } 
     198  } 
    192199  return output;         
    193200} 
     
    245252      ui->tree_install_apps->setCurrentItem( ui->tree_install_apps->topLevelItem(0) ); 
    246253    } 
    247   } 
    248   //Now re-size the columns to the minimum required width 
    249   for(int i=0; i<3; i++){ 
    250     ui->tree_install_apps->resizeColumnToContents(i); 
    251   } 
     254    //Now re-size the columns to the minimum required width 
     255    for(int i=0; i<3; i++){ 
     256      ui->tree_install_apps->resizeColumnToContents(i); 
     257    }  
     258  } 
     259   
    252260  on_tree_install_apps_itemSelectionChanged(); //Update the info boxes 
    253261  slotDisplayStats(); 
Note: See TracChangeset for help on using the changeset viewer.