Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Geopackage items: fix create new layer close dialog
- Loading branch information
Showing
with
2 additions
and
3 deletions.
-
+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 |
|
|