From 99e1f60a6570c12fd02a9a2ebe8915680d2bfcec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCmann?= Date: Fri, 11 Apr 2014 17:11:23 +0000 Subject: SendSS: *+ improved "Result"-Dialog (resource.rc/h, CSend, mir_icolib) added thumbnail link added copy buttons w/ images (copy raw, BBCode image, BBCode image with link) also improved handling. Now plays sound before dialog opens (was on close before) * CSend got new member variables. m_URL and m_URLthumb to hold image URLs (used by FTP,HTTP and ImageShack as of now) - removed m_URL and similar from CSendFTPFile and CSendHTTPServer git-svn-id: http://svn.miranda-ng.org/main/trunk@8957 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SendScreenshotPlus/src/CSendFTPFile.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/SendScreenshotPlus/src/CSendFTPFile.cpp') diff --git a/plugins/SendScreenshotPlus/src/CSendFTPFile.cpp b/plugins/SendScreenshotPlus/src/CSendFTPFile.cpp index b52a3925e8..407a63a734 100644 --- a/plugins/SendScreenshotPlus/src/CSendFTPFile.cpp +++ b/plugins/SendScreenshotPlus/src/CSendFTPFile.cpp @@ -36,12 +36,10 @@ CSendFTPFile::CSendFTPFile(HWND Owner, MCONTACT hContact, bool /*bAsync*/) m_EnableItem = 0 ; //SS_DLG_DESCRIPTION | SS_DLG_AUTOSEND | SS_DLG_DELETEAFTERSSEND; m_pszSendTyp = LPGENT("FTPFile transfer"); m_pszFileName = NULL; - m_URL = NULL; } CSendFTPFile::~CSendFTPFile(){ mir_free(m_pszFileName); - mir_free(m_URL); } //--------------------------------------------------------------------------- @@ -70,7 +68,6 @@ int CSendFTPFile::Send() } void CSendFTPFile::SendThread() { - mir_freeAndNil(m_URL); INT_PTR ret = FTPFileUploadA(m_hContact, FNUM_DEFAULT, FMODE_RAWFILE, &m_pszFileName,1); if (ret != 0) { @@ -81,7 +78,7 @@ void CSendFTPFile::SendThread() { //Can't delete the file since FTP File plugin will use it m_bDeleteAfterSend = false; - if (m_URL && m_URL[0]!= NULL) { + if (m_URL && *m_URL) {/// @fixme : m_URL never set svcSendMsgExit(m_URL); return; } Exit(ACKRESULT_FAILED); -- cgit v1.2.3