This setting doesn't apply to on-demand scans, which was probably what you were asking about.
However, when the virus dialog (during an on-demand scan) appears, you can simply check the option "don't show again" and click on "OK". This way, no action will be done with the infected files, and the virus dialog won't appear again - but you will be presented a summary window of the results in the end (and you can perform necessary actions from there).