OSDN Git Service

Lycheeにリネーム。
[tpi/lychee.git] / src / lychee / dlg_process.cpp
index 0eb7477..47c7334 100644 (file)
@@ -19,7 +19,7 @@
   $Id: dlg_process.cpp,v 1.6 2009/09/01 12:20:49 sirakaba Exp $
 *******************************************************************************/
 
-#include "frontend.h"
+#include "lychee.h"
 #include "dlg_process.h"
 
 ProcessDialog * g_procDlg = NULL;
@@ -146,7 +146,7 @@ int __stdcall TPICallbackProc(unsigned int _uMsg, void * _pStructure)
                switch (piInfo->uStatus)
                {
                case TPI_PARAM_PASSWORD:
-                       piInfo->szParam = ::wxGetPasswordFromUser(wxT("Password for:\n") + piInfo->fiInfo.fnFileName.GetFullPath(), wxT("Frontend"), wxEmptyString, g_procDlg);
+                       piInfo->szParam = ::wxGetPasswordFromUser(wxT("Password for:\n") + piInfo->fiInfo.fnFileName.GetFullPath(), wxT("Lychee"), wxEmptyString, g_procDlg);
                        if (piInfo->szParam.IsEmpty())
                        {
                                g_procDlg->fCancel = true;
@@ -154,13 +154,13 @@ int __stdcall TPICallbackProc(unsigned int _uMsg, void * _pStructure)
                        break;
                case TPI_PARAM_NEXTVOLUME:
                {
-                       wxFileDialog fd(g_procDlg, wxT("Select next volume"));
+                       wxFileDialog fd(g_procDlg, wxT("Select next volume of: ") + piInfo->fiInfo.fnFileName.GetFullName());
                        fd.SetWindowStyleFlag(wxFD_FILE_MUST_EXIST);
                        if (fd.ShowModal() == wxID_CANCEL)
                        {
                                g_procDlg->fCancel = true;
                        }
-                       piInfo->szParam = fd.GetFilename();
+                       piInfo->szParam = fd.GetPath();
                        break;
                }
                default: