Ignore:
Timestamp:
08/27/13 11:13:33 (16 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:
b103b6c
Parents:
e36bf91
Message:

Fix an issue where devices with a single child were still (incorrectly) listing the parent device as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-mounttray/devCheck.cpp

    r03aedf0 rf7d313c  
    102102    } 
    103103  } 
     104  if(detType == "USB"){ 
     105    //make sure that it is not a SCSI device 
     106     
     107  } 
    104108   
    105109  //Make sure we quit before running commands on any invalid device nodes 
     
    122126    if( !tmp.filter("partition ").isEmpty() ){ 
    123127      //Check for actual sub-devices (*s[#][a/b/c/....]) 
    124       if( devChildren(node).length() > 1 ){ hasPartitions = TRUE; } //the main device will always make it length 1 
     128      if( devChildren(node).length() > 0 ){ hasPartitions = TRUE; } //the main device will always make it length 1 
    125129    } 
    126130    if( !tmp.filter("last mounted on /").isEmpty() && (detType == "SATA")){ 
Note: See TracChangeset for help on using the changeset viewer.