mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Version for OS X 10.6-10.7 build from GYP is ready, not tested yet.
This commit is contained in:
@@ -173,9 +173,13 @@ ClickHandlerPtr ItemBase::getResultContentUrlHandler() const {
|
||||
}
|
||||
|
||||
QString ItemBase::getResultThumbLetter() const {
|
||||
QVector<QStringRef> parts = _result->_url.splitRef('/');
|
||||
#ifndef OS_MAC_OLD
|
||||
auto parts = _result->_url.splitRef('/');
|
||||
#else // OS_MAC_OLD
|
||||
auto parts = _result->_url.split('/');
|
||||
#endif // OS_MAC_OLD
|
||||
if (!parts.isEmpty()) {
|
||||
QStringRef domain = parts.at(0);
|
||||
auto domain = parts.at(0);
|
||||
if (parts.size() > 2 && domain.endsWith(':') && parts.at(1).isEmpty()) { // http:// and others
|
||||
domain = parts.at(2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user