Skip to content

Commit

Permalink
fix save connection dialog
Browse files Browse the repository at this point in the history
fixes #52519
  • Loading branch information
3nids authored and github-actions[bot] committed Apr 4, 2023
1 parent fc2293d commit b027b0f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/gui/qgsmanageconnectionsdialog.cpp
Expand Up @@ -237,8 +237,7 @@ bool QgsManageConnectionsDialog::populateConnections()
// Export mode. Populate connections list from settings
if ( mDialogMode == Export )
{
QStringList connections;
QgsSettings settings;
const QStringList connections;
switch ( mConnectionType )
{
case WMS:
Expand Down Expand Up @@ -273,19 +272,12 @@ bool QgsManageConnectionsDialog::populateConnections()
connections = QgsVectorTileProviderConnection::sTreeConnectionVectorTile->items();
break;
}
if ( !settings.group().isEmpty() )
{
QStringList keys = settings.childGroups();
QStringList::Iterator it = keys.begin();
while ( it != keys.end() )
for ( const QString& connection : connections)
{
QListWidgetItem *item = new QListWidgetItem();
item->setText( *it );
item->setText( connection );
listConnections->addItem( item );
++it;
}
settings.endGroup();
}
}
// Import mode. Populate connections list from file
else
Expand Down

0 comments on commit b027b0f

Please sign in to comment.