Only show host (not lengthy url) in message bar timeout messages

This commit is contained in:
Nyall Dawson 2019-02-01 16:19:08 +10:00
parent 742acf1923
commit 8bcd46c42b

View File

@ -13953,7 +13953,7 @@ void QgisApp::namProxyAuthenticationRequired( const QNetworkProxy &proxy, QAuthe
void QgisApp::namRequestTimedOut( const QgsNetworkRequestParameters &request ) void QgisApp::namRequestTimedOut( const QgsNetworkRequestParameters &request )
{ {
QLabel *msgLabel = new QLabel( tr( "Network request to %1 timed out, any data received is likely incomplete." ).arg( request.request().url().toString() ) + QLabel *msgLabel = new QLabel( tr( "Network request to %1 timed out, any data received is likely incomplete." ).arg( request.request().url().host() ) +
tr( " Please check the <a href=\"#messageLog\">message log</a> for further info." ), messageBar() ); tr( " Please check the <a href=\"#messageLog\">message log</a> for further info." ), messageBar() );
msgLabel->setWordWrap( true ); msgLabel->setWordWrap( true );
connect( msgLabel, &QLabel::linkActivated, mLogDock, &QWidget::show ); connect( msgLabel, &QLabel::linkActivated, mLogDock, &QWidget::show );