[lazarus] Patch for win32 : ShowModal and Lazconf

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Sep 9 07:21:41 EDT 2003

On Tue, 09 Sep 2003 00:56:44 -0300
Karl Brandt <pascalive at bol.com.br> wrote:

> Two patches are attached:


> - fix ShowModal after being closed by X button
> - small improvements/fixes to the LazConf functionns 
> (include/win32/lazconf.inc). The primary path is set to lazarus dir and 
> the secondary to windows dir. Maybe we can change it to the profile dir 
> (under NT/XP/2000) and AppData dir\lazarus (default place for App 
> files). Any suggestions?
> BTW: When Creating config files, if Primary file is not found, is tried 
> to copy from secondary file to primary file. This creates a exception 
> because primary file also not exists. Maybe can be checked if primary 
> file exists and if no, created a default one.

There is an try..except around the copy. And defaults are always created.
Even if the file exists.
I added a FileExists, so that debugging will show an exception less.


More information about the Lazarus mailing list