Skip to content

Commit

Permalink
More http -> https and routing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellMorgenstern committed Dec 1, 2019
1 parent 7f6263c commit a1ffcea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/dialogs/quotedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void QuoteDialog::setText() {
}

void QuoteDialog::visitFritzingFab() {
QDesktopServices::openUrl(QString("http://fab.fritzing.org"));
QDesktopServices::openUrl(QString("https://fab.fritzing.org"));
}

QString QuoteDialog::countArgs() {
Expand Down
4 changes: 2 additions & 2 deletions src/fapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ int FApplication::startup()
//if (!fabEnabled) {
QNetworkAccessManager * manager = new QNetworkAccessManager(this);
connect(manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(gotOrderFab(QNetworkReply *)));
manager->get(QNetworkRequest(QUrl(QString("http://fab.fritzing.org/launched%1").arg(Version::makeRequestParamsString(true)))));
manager->get(QNetworkRequest(QUrl(QString("https://fab.fritzing.org/launched%1").arg(Version::makeRequestParamsString(true)))));
//}

if (m_progressIndex >= 0) splash.showProgress(m_progressIndex, LoadProgressEnd);
Expand Down Expand Up @@ -1429,7 +1429,7 @@ void FApplication::checkForUpdates(bool atUserRequest)
}
}

QString atom = QString("http://fritzing.org/download/feed/atom/%1/%2")
QString atom = QString("https://fritzing.org/download/feed/atom/%1/%2")
.arg(PLATFORM_NAME)
.arg(Version::makeRequestParamsString(true));
DebugDialog::debug(atom);
Expand Down
2 changes: 1 addition & 1 deletion src/sketch/pcbsketchwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2753,7 +2753,7 @@ void PCBSketchWidget::requestQuote(bool byUser) {
manager->setProperty("count", countArgs);
QString filename = QUrl::toPercentEncoding(filenameIf());
connect(manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(gotFabQuote(QNetworkReply *)));
QString string = QString("https://aisler.net/meta/fritzing_quote%1&area=%2&count=%3&filename=%4&byuser=%5")
QString string = QString("https://fab.fritzing.org/fritzing-fab/quote%1&area=%2&count=%3&filename=%4&byuser=%5")
.arg(paramString)
.arg(area)
.arg(countArgs)
Expand Down
8 changes: 4 additions & 4 deletions src/sketch/welcomeview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ QWidget * WelcomeView::initShop() {
m_fabUberFrame = createShopContentFrame(":/resources/images/pcbs_2013.png",
tr("Fritzing Fab"),
tr("Fritzing Fab is an easy and affordable service for producing professional PCBs from your Fritzing sketches."),
"http://fab.fritzing.org/",
"https://fab.fritzing.org/",
tr("produce your first pcb now >>"),
tr("Order your PCB now."),
":/resources/images/icons/WS-fabLogo.png",
Expand Down Expand Up @@ -591,12 +591,12 @@ QWidget * WelcomeView::initBlog() {
QWidget * headerFrame = createHeaderFrame(tr("Projects"), "Projects", tr("Blog"), "Blog", m_inactiveHeaderLabelColor, m_activeHeaderLabelColor, m_projectsLabel, m_blogLabel);
frameLayout->addWidget(headerFrame);

m_blogListWidget = createBlogContentFrame("https://blog.fritzing.org", tr("Fritzing News."), ":/resources/images/icons/WS-blogLogo.png", "#802742");
m_blogListWidget = createBlogContentFrame("http://blog.fritzing.org", tr("Fritzing News."), ":/resources/images/icons/WS-blogLogo.png", "#802742");
m_blogUberFrame = m_blogListWidget;
while (m_blogUberFrame->parentWidget()) m_blogUberFrame = m_blogUberFrame->parentWidget();
frameLayout->addWidget(m_blogUberFrame);

m_projectListWidget = createBlogContentFrame("https://fritzing.org/projects/", tr("Fritzing Projects."), ":/resources/images/icons/WS-galleryLogo.png", "#00a55b");
m_projectListWidget = createBlogContentFrame("http://fritzing.org/projects/", tr("Fritzing Projects."), ":/resources/images/icons/WS-galleryLogo.png", "#00a55b");
m_projectsUberFrame = m_projectListWidget;
while (m_projectsUberFrame->parentWidget()) m_projectsUberFrame = m_projectsUberFrame->parentWidget();
frameLayout->addWidget(m_projectsUberFrame);
Expand Down Expand Up @@ -743,7 +743,7 @@ void WelcomeView::gotBlogSnippet(QNetworkReply * networkReply) {
}

if (!goodBlog) {
QString message = (blog) ? tr("Unable to reach blog.fritzing.org") : tr("Unable to reach friting.org/projects") ;
QString message = (blog) ? tr("Unable to reach blog.fritzing.org") : tr("Unable to reach fritzing.org/projects") ;
QString placeHolder = QString("<li><a class='title' href='nop' title='%1'></a></li>").arg(message);
if (doc.setContent(placeHolder, &errorStr, &errorLine, &errorColumn)) {
readBlog(doc, true, blog, "");
Expand Down

0 comments on commit a1ffcea

Please sign in to comment.