summaryrefslogtreecommitdiff
path: root/app/bin/dcustmgm.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/bin/dcustmgm.c')
-rw-r--r--app/bin/dcustmgm.c15
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 );