From: sirakaba Date: Wed, 28 Sep 2011 02:41:32 +0000 (+0000) Subject: 書庫を作成する際、作成に失敗していても処理後に書庫を開こうとしていたバグを修正。 X-Git-Tag: 0.01beta14~43 X-Git-Url: http://git.osdn.net/view?p=tpi%2Flychee.git;a=commitdiff_plain;h=bb06bca528b56b68928f6ba108a287f163fbe142 書庫を作成する際、作成に失敗していても処理後に書庫を開こうとしていたバグを修正。 git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@566 9df91469-1e22-0410-86e7-ea8537beb833 --- diff --git a/doc/history.html b/doc/history.html index 6a26983..9575993 100644 --- a/doc/history.html +++ b/doc/history.html @@ -28,7 +28,7 @@

History

-
2011/09/--
+
2011/10/--
Ver.0.01β13
@@ -43,6 +43,7 @@
  • 終了時の処理を改善。
  • 展開操作に対してショートカットキーCtrl+Xを割り当てた。
  • コマンドラインから書庫を開く際、エラーとなった場合にLycheeのウインドウが一瞬表示されてしまっていたのを修正。
  • +
  • 書庫を作成する際、作成に失敗していても処理後に書庫を開こうとしていたバグを修正。
  • 7zArc
    diff --git a/src/lychee/frm_main.cpp b/src/lychee/frm_main.cpp index 054449e..cbdcffc 100644 --- a/src/lychee/frm_main.cpp +++ b/src/lychee/frm_main.cpp @@ -278,8 +278,11 @@ void MainFrame::OnArcCreate(wxCommandEvent& e) procDlg.Show(true); tpi.Command(TPI_COMMAND_CREATE, & swInfo, this->fnArchive.GetFullPath(), mkDlg.files); - this->ErrorCheck(tpi.nErrorCode); procDlg.Show(false); + if (this->ErrorCheck(tpi.nErrorCode) != TPI_ERROR_SUCCESS) + { + return; + } } tpi.FreeLibrary(); @@ -296,7 +299,10 @@ void MainFrame::OnArcCreate(wxCommandEvent& e) } // 終了しない場合は書庫を開く。 - this->OnArcOpen(e); + if (this->fnArchive.FileExists()) + { + this->OnArcOpen(e); + } } void MainFrame::OnArcOpen(wxCommandEvent& e)