Bug 665987 - Win32 nsFilePicker does not clear out mFiles. r=jmathies

This commit is contained in:
Brian R. Bondy 2011-08-19 13:57:12 -04:00
Родитель cb107c6125
Коммит 807652ba92
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -361,6 +361,9 @@ NS_IMETHODIMP nsFilePicker::ShowW(PRInt16 *aReturnVal)
// Remember what filter type the user selected // Remember what filter type the user selected
mSelectedType = (PRInt16)ofn.nFilterIndex; mSelectedType = (PRInt16)ofn.nFilterIndex;
// Clear out any files from previous Show calls
mFiles.Clear();
// Set user-selected location of file or directory // Set user-selected location of file or directory
if (mMode == modeOpenMultiple) { if (mMode == modeOpenMultiple) {