Skip to content

Commit

Permalink
Fix for postgis edits not commited, fix for ticket #162 'crash when y…
Browse files Browse the repository at this point in the history
…ou select 'delete attribute' at attribute table'

git-svn-id: http://svn.osgeo.org/qgis/trunk@5599 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 14, 2006
1 parent f71e6c9 commit 8455d60
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
17 changes: 9 additions & 8 deletions src/gui/qgsdelattrdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,19 @@
#include "qgsfield.h"
#include <Q3Header>

QgsDelAttrDialog::QgsDelAttrDialog(Q3Header* header): QgsDelAttrDialogBase()
QgsDelAttrDialog::QgsDelAttrDialog(Q3Header* header): QDialog()
{
QObject::connect((QObject*)mOkButton, SIGNAL(clicked()), this, SLOT(accept()));
QObject::connect((QObject*)mCancelButton, SIGNAL(clicked()), this, SLOT(reject()));
setupUi(this);
QObject::connect(mOkButton, SIGNAL(clicked(bool)), this, SLOT(accept()));
QObject::connect(mCancelButton, SIGNAL(clicked(bool)), this, SLOT(reject()));

//insert attribute names into the QListView
if(header)
//insert attribute names into the QListView
if(header)
{
listBox2->clear();
for(int i=1;i<header->count();++i)
listBox2->clear();
for(int i=1;i<header->count();++i)
{
listBox2->insertItem(header->label(i));
listBox2->insertItem(header->label(i));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ bool QgsVectorLayer::commitChanges()
Therefore the error messages become a bit complicated to generate.
*/

if(dataProvider)
if(!dataProvider)
{
return FALSE;
}
Expand Down
3 changes: 2 additions & 1 deletion src/providers/wms/qgswmsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "qgshttptransaction.h"

#include <cmath>
#include <q3url.h>
#include <Q3Picture>

Expand Down Expand Up @@ -1944,7 +1945,7 @@ bool QgsWmsProvider::calculateExtent()

//make sure extent does not contain 'inf' or 'nan'
if(!std::isfinite(extent.xMin()) || !std::isfinite((int)extent.yMin()) || !std::isfinite(extent.xMax()) || \
!std::isfinite((int)extent.yMax()))
!std::isfinite((int)extent.yMax()))
{
continue;
}
Expand Down

0 comments on commit 8455d60

Please sign in to comment.