[Lazarus] Testing needed for bugfix
Howard Page-Clark
hdpc at talktalk.net
Mon Aug 8 13:03:52 CEST 2016
On 07/08/16 23:52, Howard Page-Clark wrote:
> On 07/08/16 22:12, Bart wrote:
>
>> B.t.w: QT or GTK2?
>
> Same results for both GTK2 and QT
>
>> What about the OnCanClose event?
Re-testing with most recent Lazarus build today.
QT and GTK2 differ slightly.
If a .txt file is selected they behave identically.
In both widgetsets the opendialog closes using either the Open or Cancel
button, and with Open UserChoice is 1, and with Cancel UserChoice is 2.
In QT if a non .txt file is selected both the Open (UserChoice=1) and
Cancel (UserChoice=2) buttons close the dialog. However, when the main
test app is closed it then exits giving a SIGSEGV at AAE60 on my system
(Mint 64-bit).
With GTK2, if a non .txt file is selected the dialog does not close
either with the Open or Cancel button or the close bordericon, but
OnCanClose fires and UserChoice has the values 1 (Open) or 2 (Cancel).
A lock file appears named .lock.sysNameOfSelectedFile#.
The only way to get the dialog to close is to select a .txt file. The
main test app then closes without any error.
Howard
More information about the Lazarus
mailing list