Skip to content
Permalink
Browse files

Geopackage items: fix create new layer close dialog

  • Loading branch information
elpaso committed Sep 14, 2017
1 parent d894054 commit e4231fd99acee05bba387c80cb0fbbc3ef4c83ba
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/providers/ogr/qgsgeopackagedataitems.cpp
@@ -174,7 +174,6 @@ QList<QAction *> QgsGeoPackageConnectionItem::actions()
connect( actionAddTable, &QAction::triggered, this, &QgsGeoPackageConnectionItem::addTable );
lst.append( actionAddTable );


return lst;
}
#endif
@@ -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

0 comments on commit e4231fd

Please sign in to comment.
You can’t perform that action at this time.