mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
browser: fix update after spatialite database creation (fixes #6258)
This commit is contained in:
parent
69ce0397a3
commit
ef31ccc4eb
@ -320,9 +320,7 @@ void QgsSLRootItem::createDatabase()
|
||||
QMessageBox::information( 0, tr( "Create SpatiaLite database" ), tr( "The database has been created" ) );
|
||||
|
||||
// add connection
|
||||
QString baseKey = "/SpatiaLite/connections/";
|
||||
QSettings settings;
|
||||
settings.setValue( baseKey + "/sqlitepath", filename );
|
||||
settings.setValue( "/SpatiaLite/connections/" + QFileInfo( filename ).fileName() + "/sqlitepath", filename );
|
||||
|
||||
refresh();
|
||||
}
|
||||
@ -330,7 +328,6 @@ void QgsSLRootItem::createDatabase()
|
||||
{
|
||||
QMessageBox::critical( 0, tr( "Create SpatiaLite database" ), tr( "Failed to create the database:\n" ) + errCause );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user