diff options
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; |