Skip to content

Commit

Permalink
WMS fail: Details only shown on demand
Browse files Browse the repository at this point in the history
Fix #10464
  • Loading branch information
m-kuhn committed Jun 20, 2014
1 parent 87ad917 commit 61e934b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/providers/wms/qgswmssourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,9 @@ void QgsWMSSourceSelect::on_btnConnect_clicked()
QgsWmsCapabilities caps;
if ( !caps.parseResponse( capDownload.response(), wmsSettings.parserSettings() ) )
{
QMessageBox::warning(
this,
tr( "WMS Provider" ),
tr( "Failed to parse capabilities:\n" ) + caps.lastError()
);
QMessageBox msgBox( QMessageBox::Warning, tr( "WMS Provider" ), tr( "Failed to parse capabilities:\n" ), QMessageBox::Ok, this );
msgBox.setDetailedText( caps.lastError() );
msgBox.exec();
return;
}

Expand Down

0 comments on commit 61e934b

Please sign in to comment.