diff --git a/plugins/delimited_text/qgsdelimitedtextplugingui.cpp b/plugins/delimited_text/qgsdelimitedtextplugingui.cpp index a4532b2aee1..5af67903700 100644 --- a/plugins/delimited_text/qgsdelimitedtextplugingui.cpp +++ b/plugins/delimited_text/qgsdelimitedtextplugingui.cpp @@ -121,7 +121,7 @@ void QgsDelimitedTextPluginGui::updateFieldLists() // clear the sample text box txtSample->clear(); // put the header row in the sample box - txtSample->insert(line + "\n"); + txtSample->insert(line + "\n"); // put a few more lines into the sample box int counter = 0; while((line=stream.readLine()) && (counter < 20)) diff --git a/plugins/spit/qgsshapefile.cpp b/plugins/spit/qgsshapefile.cpp index 658ae989d59..ea17560cdd5 100644 --- a/plugins/spit/qgsshapefile.cpp +++ b/plugins/spit/qgsshapefile.cpp @@ -246,6 +246,12 @@ bool QgsShapeFile::insertLayer(QString dbname, QString schema, QString geom_col, delete feat; } } + // create the GIST index if the the load was successful + if(result) + { + // prompt user to see if they want to build the index and warn + // them about the potential time-cost + } ogrLayer->ResetReading(); return result; } diff --git a/src/qgsgraduatedsymrenderer.cpp b/src/qgsgraduatedsymrenderer.cpp index a6288884180..a9a3070624c 100644 --- a/src/qgsgraduatedsymrenderer.cpp +++ b/src/qgsgraduatedsymrenderer.cpp @@ -123,6 +123,7 @@ void QgsGraduatedSymRenderer::readXML(const QDomNode& rnode, QgsVectorLayer& vl) { QDomNode classnode = rnode.namedItem("classificationfield"); int classificationfield = classnode.toElement().text().toInt(); + this->setClassificationField(classificationfield); QDomNode rangerendernode = rnode.namedItem("rangerenderitem");