diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:19:34 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:19:34 +0200 | 
| commit | e7d20cf352688bf717a01f4e6d9e6f497c2bea4c (patch) | |
| tree | cfd2ef9b569f49af985a6f1ec44f2614f63c8e78 /app/bin/dcustmgm.c | |
| parent | a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (diff) | |
New upstream version 5.3.1Beta2upstream/5.3.1Beta2
Diffstat (limited to 'app/bin/dcustmgm.c')
| -rw-r--r-- | app/bin/dcustmgm.c | 15 | 
1 files changed, 12 insertions, 3 deletions
diff --git a/app/bin/dcustmgm.c b/app/bin/dcustmgm.c index 871787f..0607eec 100644 --- a/app/bin/dcustmgm.c +++ b/app/bin/dcustmgm.c @@ -193,6 +193,14 @@ static void CustMgmContentsOk( void * junk )  	wHide( custMgmContentsPG.win );  } +/** + * Save custom parameter definitions to a parameter file. + * + * \param files		count of filenames, must be 1 + * \param fileName	array of filenames, one member only + * \param data		unused + * \return			TRUE on success, FALSE in case of failure + */  static int CustomDoExport(          int files, @@ -211,7 +219,7 @@ static int CustomDoExport(  		return FALSE;  	} -	SetCurrentPath( PARAMETERPATHKEY, fileName[ 0 ] ); +	SetCurrentPath( CUSTOMPATHKEY, fileName[ 0 ] );  	rc = access( fileName[ 0 ], F_OK );  	if ( rc != -1 ) {  		rc = access( fileName[ 0 ], W_OK ); @@ -223,7 +231,7 @@ static int CustomDoExport(  	} else {  		if ( custMgmContentsPG.win == NULL ) {  			ParamCreateDialog( &custMgmContentsPG, MakeWindowTitle(_("Contents Label")), -			                   _("Ok"), CustMgmContentsOk, wHide, TRUE, NULL, F_BLOCK, NULL ); +			                   _("Ok"), CustMgmContentsOk, ParamCancel_Current, TRUE, NULL, F_BLOCK, NULL );  		}  		custMgmProceed = FALSE;  		wShow( custMgmContentsPG.win ); @@ -405,7 +413,8 @@ static void DoCustomMgr( void * junk )  	if (customPG.win == NULL) {  		ParamCreateDialog( &customPG,  		                   MakeWindowTitle(_("Manage custom designed parts")), _("Done"), CustomDone, -		                   wHide, TRUE, NULL, F_RESIZE|F_RECALLSIZE|F_BLOCK, CustomDlgUpdate ); +		                   ParamCancel_Null, TRUE, NULL, F_RESIZE|F_RECALLSIZE|F_BLOCK, +		                   CustomDlgUpdate );  		while(customTypes[ i ] != NULL) {  			wListAddValue( ((wList_p)customPLs[I_CUSTOMNEWTYPE].control),  			               customTypes[ i++ ], NULL, NULL );  | 
