From 4432722b30380ae75537bed0ec0e4c3fec1fc8a9 Mon Sep 17 00:00:00 2001 From: sirakaba Date: Thu, 23 Sep 2010 02:07:10 +0000 Subject: [PATCH] =?utf8?q?=E3=83=91=E3=82=B9=E3=83=AF=E3=83=BC=E3=83=89?= =?utf8?q?=E6=8C=87=E5=AE=9A=E3=81=AB=E5=AF=BE=E3=81=99=E3=82=8B=E5=87=A6?= =?utf8?q?=E7=90=86=E3=81=AE=E6=94=B9=E5=96=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@327 9df91469-1e22-0410-86e7-ea8537beb833 --- src/lychee/dlg_process.cpp | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/lychee/dlg_process.cpp b/src/lychee/dlg_process.cpp index e27b3f4..5f952bc 100644 --- a/src/lychee/dlg_process.cpp +++ b/src/lychee/dlg_process.cpp @@ -150,12 +150,25 @@ int ProcessDialog::CallbackProc(unsigned int _uMsg, void * _pStructure) switch (piInfo->eStatus) { case TPI_PARAM_PASSWORD: - piInfo->szParam = ::wxGetPasswordFromUser(_("Password for:\n") + piInfo->fiInfo.fnFileName.GetFullPath(), wxT("Lychee"), wxEmptyString, this); - if (piInfo->szParam.IsEmpty()) + { + static wxFileName fnFormer; + static wxString szFormer; + if (piInfo->fiInfo.fnFileName == fnFormer) { - this->fCancel = true; + piInfo->szParam = ::wxGetPasswordFromUser(_("Password for:\n") + piInfo->fiInfo.fnFileName.GetFullPath(), wxT("Lychee"), wxEmptyString, this); + if (piInfo->szParam.IsEmpty()) + { + this->fCancel = true; + } + szFormer = piInfo->szParam; + } + else + { + piInfo->szParam = szFormer; + fnFormer = piInfo->fiInfo.fnFileName; } break; + } case TPI_PARAM_NEXTVOLUME: { wxFileDialog fd(this, _("Select next volume of: ") + piInfo->fiInfo.fnFileName.GetFullName()); -- 2.11.0