diff options
author | Jacek Antonelli | 2009-03-01 23:17:07 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-03-01 23:17:20 -0600 |
commit | 18004d6835650efc03ccd6c7d3b8142b264cd95a (patch) | |
tree | 7806b72845e58e7ec74f333c6fb718143ec0d414 /linden/indra/newview/llpreviewtexture.cpp | |
parent | Second Life viewer sources 1.22.9-RC (diff) | |
download | meta-impy-18004d6835650efc03ccd6c7d3b8142b264cd95a.zip meta-impy-18004d6835650efc03ccd6c7d3b8142b264cd95a.tar.gz meta-impy-18004d6835650efc03ccd6c7d3b8142b264cd95a.tar.bz2 meta-impy-18004d6835650efc03ccd6c7d3b8142b264cd95a.tar.xz |
Second Life viewer sources 1.22.10-RC
Diffstat (limited to 'linden/indra/newview/llpreviewtexture.cpp')
-rw-r--r-- | linden/indra/newview/llpreviewtexture.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llpreviewtexture.cpp b/linden/indra/newview/llpreviewtexture.cpp index 929fd15..82331b5 100644 --- a/linden/indra/newview/llpreviewtexture.cpp +++ b/linden/indra/newview/llpreviewtexture.cpp | |||
@@ -302,7 +302,8 @@ void LLPreviewTexture::saveAs() | |||
302 | if( mLoadingFullImage ) return; | 302 | if( mLoadingFullImage ) return; |
303 | 303 | ||
304 | LLFilePicker& file_picker = LLFilePicker::instance(); | 304 | LLFilePicker& file_picker = LLFilePicker::instance(); |
305 | if( !file_picker.getSaveFile( LLFilePicker::FFSAVE_TGA, LLDir::getScrubbedFileName(getItem()->getName())) ) | 305 | const LLViewerInventoryItem* item = getItem() ; |
306 | if( !file_picker.getSaveFile( LLFilePicker::FFSAVE_TGA, item ? LLDir::getScrubbedFileName(item->getName()) : LLStringUtil::null) ) | ||
306 | { | 307 | { |
307 | // User canceled or we failed to acquire save file. | 308 | // User canceled or we failed to acquire save file. |
308 | return; | 309 | return; |