aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llurlhistory.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-09 22:25:37 -0600
committerJacek Antonelli2008-12-09 22:25:41 -0600
commit22b861982f2efd5d16097a012627e73b9fb85834 (patch)
tree6152a84b92c682e271bdd52d46cd1728454f679a /linden/indra/newview/llurlhistory.cpp
parentSecond Life viewer sources 1.22.1-RC (diff)
downloadmeta-impy-22b861982f2efd5d16097a012627e73b9fb85834.zip
meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.gz
meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.bz2
meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.xz
Second Life viewer sources 1.22.2-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llurlhistory.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/linden/indra/newview/llurlhistory.cpp b/linden/indra/newview/llurlhistory.cpp
index ac3fa93..0dadbd0 100644
--- a/linden/indra/newview/llurlhistory.cpp
+++ b/linden/indra/newview/llurlhistory.cpp
@@ -72,9 +72,16 @@ bool LLURLHistory::loadFile(const std::string& filename)
72 72
73// static 73// static
74bool LLURLHistory::saveFile(const std::string& filename) 74bool LLURLHistory::saveFile(const std::string& filename)
75{ 75{
76 std::string temp_str = gDirUtilp->getLindenUserDir() + gDirUtilp->getDirDelimiter(); 76 std::string temp_str = gDirUtilp->getLindenUserDir();
77 llofstream out((temp_str + filename)); 77 if( temp_str.empty() )
78 {
79 llwarns << "Can't save. No user directory set." << llendl;
80 return false;
81 }
82
83 temp_str += gDirUtilp->getDirDelimiter() + filename;
84 llofstream out(temp_str);
78 if (!out.good()) 85 if (!out.good())
79 { 86 {
80 llwarns << "Unable to open " << filename << " for output." << llendl; 87 llwarns << "Unable to open " << filename << " for output." << llendl;