Skip to content

Commit

Permalink
Geopackage items: fix create new layer close dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Sep 14, 2017
1 parent d894054 commit e4231fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/providers/ogr/qgsgeopackagedataitems.cpp
Expand Up @@ -174,7 +174,6 @@ QList<QAction *> QgsGeoPackageConnectionItem::actions()
connect( actionAddTable, &QAction::triggered, this, &QgsGeoPackageConnectionItem::addTable );
lst.append( actionAddTable );


return lst;
}
#endif
Expand Down Expand Up @@ -463,9 +462,9 @@ void QgsGeoPackageConnectionItem::addTable()
{
dialog.setDatabasePath( connection.path() );
dialog.setCrs( QgsProject::instance()->defaultCrsForNewLayers() );
if ( dialog.exec() == QMessageBox::Ok )
if ( dialog.exec() == QDialog::Accepted )
{
mParent->refreshConnections();
refreshConnections();
}
}
else
Expand Down

0 comments on commit e4231fd

Please sign in to comment.