diff options
Diffstat (limited to 'plugins/SendScreenshotPlus/src/UMainForm.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/UMainForm.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/SendScreenshotPlus/src/UMainForm.cpp b/plugins/SendScreenshotPlus/src/UMainForm.cpp index eccc357e9b..2be98f8a58 100644 --- a/plugins/SendScreenshotPlus/src/UMainForm.cpp +++ b/plugins/SendScreenshotPlus/src/UMainForm.cpp @@ -984,15 +984,16 @@ INT_PTR TfrmMain::SaveScreenshot(FIBITMAP* dib) //Generate a description according to the screenshot + TCHAR winText[1024]; + GetDlgItemText(m_hwndTabPage, ID_edtCaption, winText, _countof(winText)); + + CMString tszFileDesc; if (m_opt_tabCapture) - tszFileDesc.Format(TranslateT("Screenshot of entire desktop")); + tszFileDesc.Format(TranslateT("Screenshot of \"%s\""), winText); else { - TCHAR winText[1024]; - GetDlgItemText(m_hwndTabPage, ID_edtCaption, winText, _countof(winText)); - if (m_opt_chkClientArea) tszFileDesc.Format(TranslateT("Screenshot for client area of \"%s\" window"), winText); else |