Qt: avoid a crash with plugins dialog.