Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-add mysteriously missing connections for custom env variables chec…
…kbox

- Probably removed during QtDesigner changes to .ui file; code into .cpp file instead
- Possible fix for #6961
  • Loading branch information
dakcarto committed Jan 14, 2013
1 parent 831f99a commit 9182ab2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/qgsoptions.cpp
Expand Up @@ -1365,6 +1365,13 @@ QStringList QgsOptions::i18nList()
return myList;
}

void QgsOptions::on_mCustomVariablesChkBx_toggled( bool chkd )
{
mAddCustomVarBtn->setEnabled( chkd );
mRemoveCustomVarBtn->setEnabled( chkd );
mCustomVariablesTable->setEnabled( chkd );
}

void QgsOptions::addCustomEnvVarRow( QString varName, QString varVal, QString varApply )
{
int rowCnt = mCustomVariablesTable->rowCount();
Expand Down
5 changes: 5 additions & 0 deletions src/app/qgsoptions.h
Expand Up @@ -117,6 +117,11 @@ class QgsOptions : public QDialog, private Ui::QgsOptionsBase
/**Remove an URL to exclude from Proxy*/
void on_mRemoveUrlPushButton_clicked();

/** Slot to enable custom environment variables table and buttons
* @note added in QGIS 1.9
*/
void on_mCustomVariablesChkBx_toggled( bool chkd );

/** Slot to add a custom environment variable to the app
* @note added in QGIS 1.9
*/
Expand Down

0 comments on commit 9182ab2

Please sign in to comment.