On 8/7/16, Howard Page-Clark <[email protected]> wrote: > Under Linux Mint 64-bit the dialog opens and closes as you say it should > for a .txt selection.
OK, fine. B.t.w: QT or GTK2? > For a non-.txt selection it is impossible to close the dialog either by > Cancel button or via the bordericon X close button. The dialog can only > be dismissed by selecting a .txt file again. Thanks for testing. What about the OnCanClose event? Does it get fired if you cancel the dialog? It should not (see TFileDialog.DoCanClose). If OnCanClose fires, can you uncomment the debugln() in TFileDialog.DoCanClose, so we can see what the value is of UserChoice at that point? If you build the app without my fix, can you close it in that scenario? (Since I changed nothing in GTK2 or QT WS code, I expect the same behaviour) > Also I could get the project to compile only by commenting out uxtheme > in the uses clause (I don't know if that skews the outcome in any way). Sorry, you can leave that out, it was only used in the forms OnCreate at some point (but now commented out) when I was testing other problems. Bart -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus-ide.org/listinfo/lazarus
