Commit 9808c8ef authored by claes's avatar claes

Bugfix for display warranty

parent 2502dc50
/**
* Proview $Id: co_wow.c,v 1.9 2005-09-20 13:24:27 claes Exp $
* Proview $Id: co_wow.c,v 1.10 2006-02-15 14:19:18 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -750,6 +750,15 @@ void warranty_help_cb( void *ctx, void *data)
wow_DisplayLicense( (Widget) data);
}
int wow_HideWarranty()
{
static int hide = 0;
int prev = hide;
hide = 1;
return prev;
}
int wow_DisplayWarranty( Widget father)
{
char text[4000];
......@@ -765,6 +774,10 @@ int wow_DisplayWarranty( Widget father)
int i;
char fname[256];
// Display only once
if ( wow_HideWarranty())
return 1;
sprintf( fname, "$pwr_exe/%s/acceptlicense.txt", lng_get_language_str());
dcli_translate_filename( fname, fname);
......
/**
* Proview $Id: co_wow.h,v 1.8 2005-09-20 13:24:47 claes Exp $
* Proview $Id: co_wow.h,v 1.9 2006-02-15 14:19:18 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -95,6 +95,7 @@ void wow_GetLabel( Widget w, char *label);
void wow_GetCSText( XmString ar_value, char *t_buffer);
int wow_GetSelection( Widget w, char *str, int size, Atom atom);
void wow_GetAtoms( Widget w, Atom *graph_atom, Atom *objid_atom, Atom *attrref_atom);
int wow_HideWarranty();
int wow_DisplayWarranty( Widget father);
void wow_DisplayLicense( Widget father);
......
/*
* Proview $Id: rt_xtt.cpp,v 1.22 2006-02-03 07:34:30 claes Exp $
* Proview $Id: rt_xtt.cpp,v 1.23 2006-02-15 14:19:18 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -932,8 +932,10 @@ Xtt::Xtt( int argc, char *argv[], int *return_sts) :
for ( i = 1; i < argc; i++) {
if ( strcmp( argv[i], "-l") == 0 && i + 1 < argc)
Lng::set( argv[i+1]);
else if ( strcmp( argv[i], "-q") == 0)
else if ( strcmp( argv[i], "-q") == 0) {
wow_HideWarranty();
quiet = 1;
}
else if ( strcmp( argv[i], "-a") == 0)
attach_audio = 1;
else if ( strcmp( argv[i], "-u") == 0 && i + 1 < argc) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment