Skip to content

Commit

Permalink
updated scheme on how to discover online doc from Help
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarungjit Parnjai authored and MrMontag committed Jul 26, 2019
1 parent 02d238d commit e8af9e0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/help/helpwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,15 @@ QUrl HelpWidget::getOnlineStartPageUrl()
if (!c4uWrapper.isValid())
return HelpData::getLatestOnlineHelpUrl();

if (c4uWrapper.distribIsLatest())
if (c4uWrapper.distribIsLatest()) {
return HelpData::getLatestOnlineHelpUrl();
else
return QUrl( QString("https://www.gams.com/%1").arg( c4uWrapper.currentDistribVersionShort() ) );
} else {
int marjorversion = c4uWrapper.currentDistribVersion()/100;
if (marjorversion>=26)
return QUrl( QString("https://www.gams.com/%1").arg( marjorversion ));
else
return QUrl( QString("https://www.gams.com/%1").arg( c4uWrapper.currentDistribVersionShort() ) );
}
}

bool HelpWidget::isDocumentAvailable(const QString &path, const QString &chapter)
Expand Down

0 comments on commit e8af9e0

Please sign in to comment.