diff options
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index c95a155fb8..a5cb42ee01 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -300,6 +300,19 @@ void NewstoryListData::Copy(bool bTextOnly) Utils_ClipboardCopy(res); } +void NewstoryListData::CopyUrl() +{ + if (auto *pItem = GetItem(caret)) { + DB::EventInfo dbei(pItem->hEvent); + DB::FILE_BLOB blob(dbei); + + //if (pItem->m_bOfflineDownloaded) +// Utils_ClipboardCopy(blob.getLocalName()); + // else + Srmm_DownloadOfflineFile(pItem->hContact, pItem->hEvent, OFD_COPYURL); + } +} + void NewstoryListData::DeleteItems(void) { if (IDYES != MessageBoxW(m_hwnd, TranslateT("Are you sure to remove selected event(s)?"), _T(MODULETITLE), MB_YESNOCANCEL | MB_ICONQUESTION)) |