Skip to content

Commit be7b60f

Browse files
author
gsherman
committed
Fix for ticket #630, thanks to patch from lubaby.
(attribute table drift on windows) Untested on Windows at 0.9 unstable. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6976 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent eb4cee1 commit be7b60f

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/app/qgsattributedialog.cpp

+13-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri
6262

6363
QgsAttributeDialog::~QgsAttributeDialog()
6464
{
65-
savePositionAndColumnWidth();
65+
6666
}
6767

6868
QString QgsAttributeDialog::value(int row)
@@ -106,6 +106,18 @@ void QgsAttributeDialog::savePositionAndColumnWidth()
106106

107107
}
108108

109+
void QgsAttributeDialog::resizeEvent(QResizeEvent *event)
110+
{
111+
savePositionAndColumnWidth();
112+
QWidget::resizeEvent(event);
113+
}
114+
115+
void QgsAttributeDialog::moveEvent(QMoveEvent *event)
116+
{
117+
savePositionAndColumnWidth();
118+
QWidget::moveEvent(event);
119+
}
120+
109121
void QgsAttributeDialog::restorePositionAndColumnWidth()
110122
{
111123
QSettings settings;

src/app/qgsattributedialog.h

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ class QgsAttributeDialog: public QDialog, private Ui::QgsAttributeDialogBase
5656

5757
void restorePositionAndColumnWidth();
5858

59+
void resizeEvent(QResizeEvent *event);
60+
61+
void moveEvent(QMoveEvent *event);
62+
5963
public slots:
6064
//! Slot to be called when an attribute value is edited in the table.
6165
void setAttributeValueChanged(int row, int column);

0 commit comments

Comments
 (0)