dae/ankiqt — pull request #18 by ospalh (2012-05-28 14:28:46+00:00)
Title: Fix a problem with the example popup when creating cram decks.

On my system, the example list for cram desks is left hanging in the middle of nowhere.
I posted an image of the problem to the [Beta-15 thread](https://groups.google.com/d/msg/ankisrs-users/E9_YtPG1b7E/TCE4jmm9FiYJ).
Looks like the window managers move the dialog after an initial show.
(I use KDE/kwin 4.8.3 with lots of extras turned on.)
I would call this a defect in the tool kit, but anyway.
And this is probably only a problem on Linux, so fix only there. (On Macs, the dialog is what i think is called a “sheet”, which is attached to the main window, and i think MS Windows doesn’t move around dialogs like this.)

This fix is pretty much a kludge:
For the first 150 ms, when the dialog is moved, re-pop-up the preset list.
(I looked at the times, on my system, the window manager takes between 50 and 75 ms to do the move after the show. YMMV, but i don’t know what delay should be used.)