From d8c098c12854caa93c6d08c9bd35380ffcfdc1df Mon Sep 17 00:00:00 2001 From: yukihane Date: Sat, 12 May 2012 20:40:48 +0900 Subject: [PATCH] =?utf8?q?=E8=A1=8C=E3=81=86=E3=81=B9=E3=81=8D=E5=87=A6?= =?utf8?q?=E7=90=86=E3=81=8C=E7=84=A1=E3=81=84=E5=A0=B4=E5=90=88=E3=81=AB?= =?utf8?q?=E3=81=AF=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=82=92?= =?utf8?q?=E5=87=BA=E5=8A=9B=E3=81=97,=E3=82=AD=E3=83=A5=E3=83=BC=E3=81=AB?= =?utf8?q?=E3=81=AF=E8=BF=BD=E5=8A=A0=E3=81=97=E3=81=AA=E3=81=84=20No.2634?= =?utf8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- frontend/src/yukihane/inqubus/gui/MainFrame.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/yukihane/inqubus/gui/MainFrame.java b/frontend/src/yukihane/inqubus/gui/MainFrame.java index 4f2f317..8e03253 100644 --- a/frontend/src/yukihane/inqubus/gui/MainFrame.java +++ b/frontend/src/yukihane/inqubus/gui/MainFrame.java @@ -627,9 +627,13 @@ public class MainFrame extends JFrame { thumbRepository.request(downProf.getProxyProfile(), tempDir, id); final RequestProcess rp = new RequestProcess(downProf, id, convProf); - taskManager.add(rp); - targetModel.addTarget(new Target(rp)); - initInputPanel(); + final boolean res = taskManager.add(rp); + if (res) { + targetModel.addTarget(new Target(rp)); + initInputPanel(); + } else { + fldInputMessage.setText("行うべき処理がありません"); + } } catch (Throwable th) { logger.error(null, th); JOptionPane.showMessageDialog(MainFrame.this, th.getMessage(), "中断しました", JOptionPane.ERROR_MESSAGE); @@ -711,6 +715,7 @@ public class MainFrame extends JFrame { // End of variables declaration//GEN-END:variables private void initInputPanel() { + fldInputMessage.setText(""); initMainTab(); initFfmpegTab(); tbpInput.setSelectedIndex(0); -- 2.11.0