Skip to content

Commit

Permalink
Fix bug where ok button is not enabled if output file name is manuall…
Browse files Browse the repository at this point in the history
…y entered

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11916 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 4, 2009
1 parent 3f4d058 commit 3bcf7d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/plugins/interpolation/qgsinterpolationdialog.cpp
Expand Up @@ -307,6 +307,14 @@ void QgsInterpolationDialog::on_mOutputFileButton_clicked()
enableOrDisableOkButton();
}

void QgsInterpolationDialog::on_mOutputFileLineEdit_textChanged()
{
if ( mOutputFileLineEdit->text().endsWith(".asc"))
{
enableOrDisableOkButton();
}
}

void QgsInterpolationDialog::on_mConfigureInterpolationButton_clicked()
{
if ( mInterpolatorDialog )
Expand Down
1 change: 1 addition & 0 deletions src/plugins/interpolation/qgsinterpolationdialog.h
Expand Up @@ -38,6 +38,7 @@ class QgsInterpolationDialog: public QDialog, private Ui::QgsInterpolationDialog
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();
Expand Down

0 comments on commit 3bcf7d8

Please sign in to comment.