Merge pull request #511 from luzpaz/Short-urls
Replace old wiki URLs with new Short URLs
This commit is contained in:
@@ -461,7 +461,7 @@ StdCmdOnlineHelpWebsite::StdCmdOnlineHelpWebsite()
|
||||
void StdCmdOnlineHelpWebsite::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/index.php?title=Online_Help_Toc").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/Online_Help_Toc").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("OnlineHelp", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("OnlineHelp", url.c_str());
|
||||
@@ -517,7 +517,7 @@ StdCmdFreeCADUserHub::StdCmdFreeCADUserHub()
|
||||
void StdCmdFreeCADUserHub::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/index.php?title=User_hub").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/User_hub").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("Documentation", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("Documentation", url.c_str());
|
||||
@@ -545,7 +545,7 @@ StdCmdFreeCADPowerUserHub::StdCmdFreeCADPowerUserHub()
|
||||
void StdCmdFreeCADPowerUserHub::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/index.php?title=Power_users_hub").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/Power_users_hub").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("PowerUsers", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("PowerUsers", url.c_str());
|
||||
@@ -601,7 +601,7 @@ StdCmdFreeCADFAQ::StdCmdFreeCADFAQ()
|
||||
void StdCmdFreeCADFAQ::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/index.php?title=FAQ").toStdString();
|
||||
std::string defaulturl = QCoreApplication::translate(this->className(),"http://www.freecadweb.org/wiki/FAQ").toStdString();
|
||||
ParameterGrp::handle hURLGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Websites");
|
||||
std::string url = hURLGrp->GetASCII("FAQ", defaulturl.c_str());
|
||||
hURLGrp->SetASCII("FAQ", url.c_str());
|
||||
|
||||
Reference in New Issue
Block a user