mirror of https://github.com/procxx/kepka.git
Merge branch 'docs' of https://bitbucket.org/johnprestonmail/telegram-desktop into docs
This commit is contained in:
commit
ed2bbc8236
|
@ -1120,7 +1120,8 @@ LayoutOverviewLink::LayoutOverviewLink(HistoryMedia *media, HistoryItem *parent)
|
||||||
if (_page) {
|
if (_page) {
|
||||||
_title = _page->title;
|
_title = _page->title;
|
||||||
}
|
}
|
||||||
QVector<QStringRef> parts = (_page ? _page->url : (_links.isEmpty() ? QString() : _links.at(0).lnk->text())).splitRef('/');
|
QString url(_page ? _page->url : (_links.isEmpty() ? QString() : _links.at(0).lnk->text()));
|
||||||
|
QVector<QStringRef> parts = url.splitRef('/');
|
||||||
if (!parts.isEmpty()) {
|
if (!parts.isEmpty()) {
|
||||||
QStringRef domain = parts.at(0);
|
QStringRef domain = parts.at(0);
|
||||||
if (parts.size() > 2 && domain.endsWith(':') && parts.at(1).isEmpty()) { // http:// and others
|
if (parts.size() > 2 && domain.endsWith(':') && parts.at(1).isEmpty()) { // http:// and others
|
||||||
|
@ -1278,4 +1279,4 @@ LayoutOverviewLink::Link::Link(const QString &url, const QString &text)
|
||||||
: text(text)
|
: text(text)
|
||||||
, width(st::normalFont->width(text))
|
, width(st::normalFont->width(text))
|
||||||
, lnk(linkFromUrl(url)) {
|
, lnk(linkFromUrl(url)) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue