Skip to content

Commit

Permalink
Fix HANA error messages in QgsManageConnectionsDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
mrylov committed Dec 8, 2020
1 parent f9a5a9c commit 6dd7b06
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/gui/qgsmanageconnectionsdialog.cpp
Expand Up @@ -393,8 +393,8 @@ bool QgsManageConnectionsDialog::populateConnections()
case HANA:
if ( root.tagName() != QLatin1String( "qgsHanaConnections" ) )
{
QMessageBox::information( this, tr( "Loading Connections" ),
tr( "The file is not a HANA connections exchange file." ) );
QMessageBox::warning( this, tr( "Loading Connections" ),
tr( "The file is not a HANA connections exchange file." ) );
return false;
}
break;
Expand Down Expand Up @@ -1386,9 +1386,9 @@ void QgsManageConnectionsDialog::loadHanaConnections( const QDomDocument &doc, c
QDomElement root = doc.documentElement();
if ( root.tagName() != QLatin1String( "qgsHanaConnections" ) )
{
QMessageBox::information( this,
tr( "Loading Connections" ),
tr( "The file is not a HANA connections exchange file." ) );
QMessageBox::warning( this,
tr( "Loading Connections" ),
tr( "The file is not a HANA connections exchange file." ) );
return;
}

Expand All @@ -1397,7 +1397,7 @@ void QgsManageConnectionsDialog::loadHanaConnections( const QDomDocument &doc, c
{
QMessageBox::warning( this,
tr( "Loading Connections" ),
tr( "The file version '%1' is not supported." ).arg( version.value() ) );
tr( "The HANA connections exchange file version '%1' is not supported." ).arg( version.value() ) );
return;
}

Expand Down

0 comments on commit 6dd7b06

Please sign in to comment.