Skip to content

Commit

Permalink
browser: fix update after spatialite database creation (fixes #6258)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 21, 2014
1 parent 69ce039 commit ef31ccc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/providers/spatialite/qgsspatialitedataitems.cpp
Expand Up @@ -320,17 +320,14 @@ 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();
}
else
{
QMessageBox::critical( 0, tr( "Create SpatiaLite database" ), tr( "Failed to create the database:\n" ) + errCause );
}

}

// ---------------------------------------------------------------------------
Expand Down

0 comments on commit ef31ccc

Please sign in to comment.