Only try to add the preferred app if it can be found, otherwise the Open With
menu would be completelly empty. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30430 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -590,10 +590,9 @@ AddOneRefSignatures(const entry_ref *ref, void *castToIterator)
|
||||
|
||||
// add preferred app for file, if any
|
||||
if (model.PreferredAppSignature()[0]) {
|
||||
queryIterator->PushUniqueSignature(model.PreferredAppSignature());
|
||||
|
||||
// got one, mark it as preferred for this node
|
||||
if (be_roster->FindApp(model.PreferredAppSignature(), &preferredRef) == B_OK) {
|
||||
queryIterator->PushUniqueSignature(model.PreferredAppSignature());
|
||||
preferredAppFromNode = true;
|
||||
queryIterator->TrySettingPreferredAppForFile(&preferredRef);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user