OSDN Git Service

BrowseRefs: Creating a tag or branch works now
authorJohan 't Hart <johanthart@gmail.com>
Sun, 10 May 2009 21:09:16 +0000 (23:09 +0200)
committerFrank Li <lznuaa@gmail.com>
Thu, 14 May 2009 15:22:19 +0000 (23:22 +0800)
src/TortoiseProc/BrowseRefsDlg.cpp

index 915b5cf..6707fea 100644 (file)
@@ -6,7 +6,7 @@
 #include "BrowseRefsDlg.h"\r
 #include "LogDlg.h"\r
 #include "AddRemoteDlg.h"\r
 #include "BrowseRefsDlg.h"\r
 #include "LogDlg.h"\r
 #include "AddRemoteDlg.h"\r
-#include "CreateBranchTagDlg.h"\r
+#include "AppUtils.h"\r
 #include "Settings\SettingGitRemote.h"\r
 #include "SinglePropSheetDlg.h"\r
 #include "MessageBox.h"\r
 #include "Settings\SettingGitRemote.h"\r
 #include "SinglePropSheetDlg.h"\r
 #include "MessageBox.h"\r
@@ -489,17 +489,13 @@ void CBrowseRefsDlg::OnContextMenu_RefTreeCtrl(CPoint point)
                break;\r
        case eCmd_CreateBranch:\r
                {\r
                break;\r
        case eCmd_CreateBranch:\r
                {\r
-                       CCreateBranchTagDlg dlg(this);\r
-                       dlg.m_bIsTag=false;\r
-                       dlg.DoModal();\r
+                       CAppUtils::CreateBranchTag(false);\r
                        Refresh();\r
                }\r
                break;\r
        case eCmd_CreateTag:\r
                {\r
                        Refresh();\r
                }\r
                break;\r
        case eCmd_CreateTag:\r
                {\r
-                       CCreateBranchTagDlg dlg(this);\r
-                       dlg.m_bIsTag=true;\r
-                       dlg.DoModal();\r
+                       CAppUtils::CreateBranchTag(true);\r
                        Refresh();\r
                }\r
                break;\r
                        Refresh();\r
                }\r
                break;\r