Simplication in Tracker Find Panel
If attribute mode and you select a mime type, Remove then add the rows first with the first items marked, then go through and re-mark the selected item.
This commit is contained in:
@@ -1132,6 +1132,7 @@ FindPanel::MessageReceived(BMessage* message)
|
||||
if (fMode == kByAttributeItem) {
|
||||
// the attributes for this type may be different
|
||||
RemoveAttrViewItems(false);
|
||||
AddAttrRow();
|
||||
}
|
||||
|
||||
BMenuItem* item;
|
||||
@@ -1143,9 +1144,6 @@ FindPanel::MessageReceived(BMessage* message)
|
||||
SetCurrentMimeType(item);
|
||||
}
|
||||
|
||||
if (fMode == kByAttributeItem)
|
||||
AddAttrRow();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2509,10 +2507,8 @@ FindPanel::AddAttributeControls(int32 gridRow)
|
||||
B_TRANSLATE_NOCOLLECT(operatorLabels[i]), message));
|
||||
}
|
||||
|
||||
// mark first items if not marked
|
||||
if (menu->FindMarked() == NULL)
|
||||
// mark first items initially
|
||||
menu->ItemAt(0)->SetMarked(true);
|
||||
if (submenu->FindMarked() == NULL)
|
||||
submenu->ItemAt(0)->SetMarked(true);
|
||||
|
||||
// add SIZE attribute
|
||||
|
||||
Reference in New Issue
Block a user