[QGIS Commit] r11916 - trunk/qgis/src/plugins/interpolation
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Nov 4 03:58:26 EST 2009
Author: timlinux
Date: 2009-11-04 03:58:25 -0500 (Wed, 04 Nov 2009)
New Revision: 11916
Modified:
trunk/qgis/src/plugins/interpolation/qgsinterpolationdialog.cpp
trunk/qgis/src/plugins/interpolation/qgsinterpolationdialog.h
Log:
Fix bug where ok button is not enabled if output file name is manually entered
Modified: trunk/qgis/src/plugins/interpolation/qgsinterpolationdialog.cpp
===================================================================
--- trunk/qgis/src/plugins/interpolation/qgsinterpolationdialog.cpp 2009-11-04 08:28:47 UTC (rev 11915)
+++ trunk/qgis/src/plugins/interpolation/qgsinterpolationdialog.cpp 2009-11-04 08:58:25 UTC (rev 11916)
@@ -307,6 +307,14 @@
enableOrDisableOkButton();
}
+void QgsInterpolationDialog::on_mOutputFileLineEdit_textChanged()
+{
+ if ( mOutputFileLineEdit->text().endsWith(".asc"))
+ {
+ enableOrDisableOkButton();
+ }
+}
+
void QgsInterpolationDialog::on_mConfigureInterpolationButton_clicked()
{
if ( mInterpolatorDialog )
Modified: trunk/qgis/src/plugins/interpolation/qgsinterpolationdialog.h
===================================================================
--- trunk/qgis/src/plugins/interpolation/qgsinterpolationdialog.h 2009-11-04 08:28:47 UTC (rev 11915)
+++ trunk/qgis/src/plugins/interpolation/qgsinterpolationdialog.h 2009-11-04 08:58:25 UTC (rev 11916)
@@ -38,6 +38,7 @@
void on_buttonBox_accepted();
void on_mInputLayerComboBox_currentIndexChanged( const QString& text );
void on_mOutputFileButton_clicked();
+ void on_mOutputFileLineEdit_textChanged();
void on_mConfigureInterpolationButton_clicked();
void on_mInterpolationMethodComboBox_currentIndexChanged( const QString &text );
void on_mAddPushButton_clicked();
More information about the QGIS-commit
mailing list