<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;"><br></div>Hi Marco:<br><br>&gt; &gt;thinking in usability  it will be better if we<br>&gt; &gt;could add multiple  database  layers  without needing to close and reopen  <br>&gt; QGgsDbSourceSelect<br>&gt; <br>&gt; It is possible to add multiple tables from one database by selecting and <br>&gt; holding the ctrl key pressed. Or do you mean to add layers from multiple <br>&gt; databases with one dialog? If yes, how do you intend to change the gui <br>&gt; elements in the dialog?<br><br>I was thinking to create the selected layers of one database when pressing the<br>add button in QGgsDbSourceSelect. Because the gui elements of dialog will be<br>the same to postgres databases and ogr databases, I was also thinking in add<br>a disconnect button to&nbsp; close the actual connection being able to choose another<br>connection, maybe of different type and populate again the list of tables, being<br>possible to add another set of tables without closing the dialog.<br>&nbsp;<br>&gt; &gt;What do you think about this change, or it could be better to add the code to <br>&gt; manage ogr database layers<br>&gt; &gt;in  QgisApp::addDatabaseLayer()?<br>&gt; <br>&gt; Maybe QgsDbSourceSelect should just give back a list of urls and provider <br>&gt; strings and QgisApp::addDatabaseLayer() just create the vector layers with <br>&gt; this information. That way, the assembly of the database urls for postgres- <br>&gt; or ogr-database layers could happen inside QGgsDbSourceSelect class. Does <br>&gt; that make sense?<br>&gt; <br>This is the how postgres vector is added actually.<br><br><br /><hr />Peek-a-boo FREE Tricks & Treats for You! <a href='http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us' target='_new'>Get 'em!</a></body>
</html>