no QDialog in batch mode