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@11916 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 4, 2009
1 parent 42adb1d commit 2ca2aab
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 2ca2aab

Please sign in to comment.