Skip to content

Commit 2ca2aab

Browse files
author
timlinux
committed
Fix bug where ok button is not enabled if output file name is manually entered
git-svn-id: http://svn.osgeo.org/qgis/trunk@11916 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 42adb1d commit 2ca2aab

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/plugins/interpolation/qgsinterpolationdialog.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,14 @@ void QgsInterpolationDialog::on_mOutputFileButton_clicked()
307307
enableOrDisableOkButton();
308308
}
309309

310+
void QgsInterpolationDialog::on_mOutputFileLineEdit_textChanged()
311+
{
312+
if ( mOutputFileLineEdit->text().endsWith(".asc"))
313+
{
314+
enableOrDisableOkButton();
315+
}
316+
}
317+
310318
void QgsInterpolationDialog::on_mConfigureInterpolationButton_clicked()
311319
{
312320
if ( mInterpolatorDialog )

src/plugins/interpolation/qgsinterpolationdialog.h

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class QgsInterpolationDialog: public QDialog, private Ui::QgsInterpolationDialog
3838
void on_buttonBox_accepted();
3939
void on_mInputLayerComboBox_currentIndexChanged( const QString& text );
4040
void on_mOutputFileButton_clicked();
41+
void on_mOutputFileLineEdit_textChanged();
4142
void on_mConfigureInterpolationButton_clicked();
4243
void on_mInterpolationMethodComboBox_currentIndexChanged( const QString &text );
4344
void on_mAddPushButton_clicked();

0 commit comments

Comments
 (0)