Added one more safety feature so dialog cannot be closed while thread is running or paused. It is needed because qm doesn't know about paused threads and threads need to be resumed before dialog closes.
fixed in post#4 ListDialogRotate2b
fixed in post#4 ListDialogRotate2b