Skip to content

Commit

Permalink
apply #2634
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13441 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 8, 2010
1 parent 46285a2 commit 062f329
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
16 changes: 14 additions & 2 deletions src/plugins/spatialquery/qgsspatialquerydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ void QgsSpatialQueryDialog::runQuery()
buttonBox->button( QDialogButtonBox::Close )->show();
buttonBox->button( QDialogButtonBox::Cancel )->hide();
buttonBox->button( QDialogButtonBox::Ok )->hide();
adjustSize();
} // void QgsSpatialQueryDialog::runQuery()

void QgsSpatialQueryDialog::setInputsVisible( bool show )
Expand Down Expand Up @@ -586,8 +587,19 @@ void QgsSpatialQueryDialog::on_buttonBox_accepted()

void QgsSpatialQueryDialog::on_buttonBox_rejected()
{
reject();

if ( grpResults->isHidden() )
{
reject();
}
else
{
grpResults->hide();
setInputsVisible( true );
progressBarStatus->show();
buttonBox->button( QDialogButtonBox::Close )->hide();
buttonBox->button( QDialogButtonBox::Cancel )->show();
buttonBox->button( QDialogButtonBox::Ok )->show();
}
} // void QgsSpatialQueryDialog::on_buttonBox_rejected()

void QgsSpatialQueryDialog::on_targetLayerComboBox_currentIndexChanged( int index )
Expand Down
18 changes: 0 additions & 18 deletions src/plugins/spatialquery/qgsspatialquerydialogbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -315,22 +315,4 @@ p, li { white-space: pre-wrap; }
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>QgsSpatialQueryDialogBase</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>288</x>
<y>438</y>
</hint>
<hint type="destinationlabel">
<x>292</x>
<y>459</y>
</hint>
</hints>
</connection>
</connections>
</ui>

0 comments on commit 062f329

Please sign in to comment.