Skip to content

Commit 9182ab2

Browse files
committed
Re-add mysteriously missing connections for custom env variables checkbox
- Probably removed during QtDesigner changes to .ui file; code into .cpp file instead - Possible fix for #6961
1 parent 831f99a commit 9182ab2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/app/qgsoptions.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,13 @@ QStringList QgsOptions::i18nList()
13651365
return myList;
13661366
}
13671367

1368+
void QgsOptions::on_mCustomVariablesChkBx_toggled( bool chkd )
1369+
{
1370+
mAddCustomVarBtn->setEnabled( chkd );
1371+
mRemoveCustomVarBtn->setEnabled( chkd );
1372+
mCustomVariablesTable->setEnabled( chkd );
1373+
}
1374+
13681375
void QgsOptions::addCustomEnvVarRow( QString varName, QString varVal, QString varApply )
13691376
{
13701377
int rowCnt = mCustomVariablesTable->rowCount();

src/app/qgsoptions.h

+5
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ class QgsOptions : public QDialog, private Ui::QgsOptionsBase
117117
/**Remove an URL to exclude from Proxy*/
118118
void on_mRemoveUrlPushButton_clicked();
119119

120+
/** Slot to enable custom environment variables table and buttons
121+
* @note added in QGIS 1.9
122+
*/
123+
void on_mCustomVariablesChkBx_toggled( bool chkd );
124+
120125
/** Slot to add a custom environment variable to the app
121126
* @note added in QGIS 1.9
122127
*/

0 commit comments

Comments
 (0)