Allow opening files from within Firestorm on OS X. Fixes FIRE-720 for OS X users.
parent
c67922719a
commit
1b3d330f85
|
|
@ -3234,6 +3234,18 @@ void LLWindowMacOSX::spawnWebBrowser(const std::string& escaped_url, bool async)
|
|||
}
|
||||
}
|
||||
|
||||
void LLWindowMacOSX::openFile(const std::string& file_name )
|
||||
{
|
||||
llinfos << "Opening file " << file_name << llendl;
|
||||
FSRef appRef;
|
||||
OSStatus os_result = FSPathMakeRef((UInt8*)file_name.c_str(),
|
||||
&appRef,NULL);
|
||||
if(os_result >= 0)
|
||||
{
|
||||
os_result = LSOpenFSRef(&appRef, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
LLSD LLWindowMacOSX::getNativeKeyData()
|
||||
{
|
||||
LLSD result = LLSD::emptyMap();
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ public:
|
|||
/*virtual*/ void allowLanguageTextInput(LLPreeditor *preeditor, BOOL b);
|
||||
/*virtual*/ void interruptLanguageTextInput();
|
||||
/*virtual*/ void spawnWebBrowser(const std::string& escaped_url, bool async);
|
||||
|
||||
/*virtual*/ void openFile(const std::string& file_name);
|
||||
/*virtual*/ void setTitle(const std::string& title);
|
||||
|
||||
static std::vector<std::string> getDynamicFallbackFontList();
|
||||
|
|
|
|||
Loading…
Reference in New Issue