|
From: <pst...@us...> - 2008-12-24 00:32:08
|
Revision: 647
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=647&view=rev
Author: pstieber
Date: 2008-12-24 00:32:03 +0000 (Wed, 24 Dec 2008)
Log Message:
-----------
1. Changed the code to set the help path temporary directory only if the help file is found.
2. Changed a comment.
Modified Paths:
--------------
trunk/jazz/src/JazzPlusPlusApplication.cpp
Modified: trunk/jazz/src/JazzPlusPlusApplication.cpp
===================================================================
--- trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-12-15 05:40:25 UTC (rev 646)
+++ trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-12-24 00:32:03 UTC (rev 647)
@@ -213,15 +213,15 @@
HelpFileFound = true;
}
+ // GetUserDataDir returns the directory for the user-dependent application
+ // data files. The value is $HOME/.appname on Linux,
+ // c:\Documents and Settings\username\Application Data\appname on
+ // Windows, and ~/Library/Application Support/appname on the Mac.
+ // The cached version of the help file will be placed in this location.
+ mHelp.SetTempDir(wxStandardPaths::Get().GetUserDataDir());
+
if (HelpFileFound)
{
- // GetUserDataDir returns the directory for the user-dependent application
- // data files. The value is $HOME/.appname on Linux,
- // c:\Documents and Settings\username\Application Data\appname on
- // Windows, and ~/Library/Application Support/appname on the Mac.
- // The cached version of the help file will be placed in this location.
- mHelp.SetTempDir(wxStandardPaths::Get().GetUserDataDir());
-
// Add the IPVT help file the the help system.
mHelp.AddBook(HelpFileNameAndPath);
@@ -243,7 +243,7 @@
//-----------------------------------------------------------------------------
void JZJazzPlusPlusApplication::InsureConfigurationFileExistence() const
{
- // Determine the expected location of the user's data dir for Jazz++.
+ // Determine the expected location of the user's data directory for Jazz++.
wxString UserConfigDir = wxStandardPaths::Get().GetUserDataDir();
// Determine if the directory exists.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|