* fixed bug that involved cells not updating (visually)

This commit is contained in:
Reinhard Pointner 2010-01-04 11:06:56 +00:00
parent 9a49358f47
commit 6052f527c2
1 changed files with 6 additions and 1 deletions

View File

@ -223,6 +223,11 @@ class VideoHashSubtitleDownloadDialog extends JDialog {
@Override
public void actionPerformed(ActionEvent evt) {
// disable any active cell editor
if (subtitleMappingTable.getCellEditor() != null) {
subtitleMappingTable.getCellEditor().cancelCellEditing();
}
// don't allow restart of download as long as there are still unfinished download tasks
if (downloadService != null && !downloadService.isTerminated()) {
return;
@ -269,7 +274,7 @@ class VideoHashSubtitleDownloadDialog extends JDialog {
// start download
if (downloadQueue.size() > 0) {
downloadService = Executors.newSingleThreadExecutor();
downloadService = Executors.newFixedThreadPool(2);
for (DownloadTask downloadTask : downloadQueue) {
downloadTask.getSubtitleBean().setState(StateValue.PENDING);