Download manager. Not part of build. a=asa

This commit is contained in:
blakeross%telocity.com 2002-03-06 00:17:32 +00:00
Родитель 2c2fb37161
Коммит cb64ed1967
3 изменённых файлов: 2 добавлений и 7 удалений

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

@ -163,12 +163,10 @@ var downloadViewController = {
// XXX we should probably prompt the user
for (i = 0; i < selection.length; ++i)
gDownloadManager.cancelDownload(selection[i].id);
break;
case "cmd_remove":
for (i = 0; i < selection.length; ++i)
gDownloadManager.removeDownload(selection[i].id);
break;
case "cmd_selectAll":
gDownloadView.selectAll();

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

@ -113,10 +113,7 @@
which is good, but we need to specify it ourselves here -->
<key id="key_selectAll" command="cmd_selectAll"/>
<!-- We need to provide our own delete key binding because the key_delete
handler in platformGlobalOverlay.xul maps command to "cmd_delete" which
is NOT what we want! -->
<key id="key_delete" command="cmd_remove"/>
<key id="key_remove" keycode="VK_DELETE" command="cmd_remove"/>
<key id="key_properties" key="&cmd.properties.keybinding;"
command="cmd_properties" modifiers="accel"/>

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

@ -961,7 +961,7 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
mDialogListener->OnStateChange(aWebProgress, aRequest, aStateFlags, aStatus);
if (aStateFlags & STATE_STOP) {
if (mDownloadState == DOWNLOADING && mPercentComplete == 100)
if ((mDownloadState == DOWNLOADING && mPercentComplete == 100) || mDownloadState == NOTSTARTED)
mDownloadState = FINISHED;
char* persistentDescriptor;