File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5770,6 +5770,7 @@ void CMUSHclientDoc::OnFileSave()
5770
5770
{
5771
5771
int iCount;
5772
5772
CString strDirectory;
5773
+ CString strOriginalTitle = m_strWindowTitle;
5773
5774
5774
5775
// find length of current directory
5775
5776
iCount = GetCurrentDirectory (0 , NULL );
@@ -5782,6 +5783,8 @@ CString strDirectory;
5782
5783
CDocument::OnFileSave ();
5783
5784
// change back to current directory
5784
5785
SetCurrentDirectory (strDirectory);
5786
+ // put title back
5787
+ SetTitle (strOriginalTitle);
5785
5788
}
5786
5789
5787
5790
void CMUSHclientDoc::OnUpdateFileSave (CCmdUI* pCmdUI)
@@ -5796,6 +5799,7 @@ void CMUSHclientDoc::OnFileSaveAs()
5796
5799
{
5797
5800
int iCount;
5798
5801
CString strDirectory;
5802
+ CString strOriginalTitle = m_strWindowTitle;
5799
5803
5800
5804
// find length of current directory
5801
5805
iCount = GetCurrentDirectory (0 , NULL );
@@ -5808,7 +5812,8 @@ CString strDirectory;
5808
5812
CDocument::OnFileSaveAs ();
5809
5813
// change back to current directory
5810
5814
SetCurrentDirectory (strDirectory);
5811
-
5815
+ // put title back
5816
+ SetTitle (strOriginalTitle);
5812
5817
}
5813
5818
5814
5819
void CMUSHclientDoc::OnUpdateFileSaveAs (CCmdUI* pCmdUI)
You can’t perform that action at this time.
0 commit comments