aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2008-12-05 05:00:17 -0700
committerJacek Antonelli2008-12-10 21:31:13 -0600
commit237b2c2d7e9c4844d4ca7c8f97b3a8b53eb9dec4 (patch)
tree47c1a42d5570b9ac43c1127a257b6eb15ef9bcb6
parentRebranded login menu. [#23] (diff)
downloadmeta-impy-237b2c2d7e9c4844d4ca7c8f97b3a8b53eb9dec4.zip
meta-impy-237b2c2d7e9c4844d4ca7c8f97b3a8b53eb9dec4.tar.gz
meta-impy-237b2c2d7e9c4844d4ca7c8f97b3a8b53eb9dec4.tar.bz2
meta-impy-237b2c2d7e9c4844d4ca7c8f97b3a8b53eb9dec4.tar.xz
Fixed blank url_history.xml creation. (VWR-5808)
-rw-r--r--ChangeLog.txt4
-rw-r--r--linden/indra/newview/llurlhistory.cpp13
2 files changed, 14 insertions, 3 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index f9b2fed..e1d0ae3 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -58,6 +58,10 @@
58 Rebranded login menu. [#23] 58 Rebranded login menu. [#23]
59 59
60 60
61 * linden/indra/newview/llurlhistory.cpp:
62 Fixed blank url_history.xml creation. (VWR-5808)
63
64
61=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 65=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
62=- 1.0.0 RC2 -= 66=- 1.0.0 RC2 -=
63=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 67=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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;