Hi Albrecht, >> attached is a patch to make QLGT an even better OS X citizen by handling >> file open events. This makes it possible to open GPX files and other >> formats known by QLGT by double-clicking in the Finder. > > I meanwhile played a little bit with this feature on Tiger. Double-clicking > a file opens it /if QLGT is already running/ - nice! > > But did you try to double-click a file to *start* QLGT and to load the file?
sure I did. Not a single crash here, until I tried to attach with gdb right after launching QLGT... > On Tiger, this operation will always crash QLGT, in function > CMainWindow::loadData, when the statement > > pathData = fileInfo.absolutePath(); > > is executed. For me, it looks as if the event is passed during the startup > of the application when the main window object is not yet present (if I > comment this statement out, it will crash on e.g. loadGPX()). Is this a > "special" effect on Tiger (didn't try Leopard yet)? Maybe it is necessary to > delay the handling of the event until the main window has been fully > initialised. Don't know yet... In some cases, after attaching with gdb, theMainWindow is indeed a NULL-pointer in the event handler, which results in a crash in the above statement :-( Smells like an obscure race condition. On what hardware did you try this? And which QT version? Investigating... -- Michael There are only 10 types of people in the world -- Those who understand binary and those who don't. ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
