OSDN Git Service

書庫を開く際の進捗ダイアログの表示タイミングを変更した影響で、ヘッダ暗号化書庫などが開けなくなっていたバグを修正。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 9 Jan 2011 10:53:03 +0000 (10:53 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 9 Jan 2011 10:53:03 +0000 (10:53 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@468 9df91469-1e22-0410-86e7-ea8537beb833

src/lychee/dlg_process.cpp

index 7a9d484..7357285 100644 (file)
@@ -35,6 +35,7 @@ ProcessDialog::ProcessDialog(): wxDialog()
 {\r
        ::wxXmlResource::Get()->Load(L_DIR_S_XRC wxT("dlg_process.xrc"));\r
        ::wxXmlResource::Get()->LoadDialog(this, this->GetParent(), wxT("dlg_process"));        \r
+       g_procDlg = this;\r
 }\r
 \r
 ProcessDialog::~ProcessDialog()\r
@@ -64,7 +65,6 @@ void ProcessDialog::OnInit(wxInitDialogEvent &)
        this->gArchive          = XRCCTRL(* this, "gArchive",     wxGauge);\r
        this->fCancel           = false;\r
        this->nOverwriteMode    = wxID_OK;\r
-       g_procDlg = this;\r
        ::wxXmlResource::Get()->Unload(L_DIR_S_XRC wxT("dlg_process.xrc"));\r
 \r
        // コールバックを送信。\r
@@ -93,7 +93,7 @@ int ProcessDialog::CallbackProc(unsigned int _uMsg, void * _pStructure)
        }\r
 \r
        TPI_PROCESSINFO * piInfo = (TPI_PROCESSINFO *) _pStructure;\r
-       if (piInfo == NULL || ! this->IsShown())\r
+       if (piInfo == NULL)\r
        {\r
                return TPI_CALLBACK_CONTINUE;\r
        }\r