From c34858a4c7889483a8775c65c9bd1f357bca2572 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Jan 2016 17:46:28 +0300 Subject: Remove copy to clipboard action in npc dialog popup. --- src/gui/windows/npcdialog.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/gui/windows/npcdialog.cpp') diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index 862c6bfcd..60c8f06d6 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -1241,19 +1241,10 @@ void NpcDialog::mousePressed(MouseEvent &event) } } -void NpcDialog::copyToClipboard(const BeingId npcId, - const int x, const int y) +void NpcDialog::copyToClipboard(const int x, const int y) const { - NpcDialogs::iterator it = mNpcDialogs.find(npcId); - if (it != mNpcDialogs.end()) - { - const BrowserBox *const text = (*it).second->mTextBox; - if (!text) - return; - - std::string str = text->getTextAtPos(x, y); - sendBuffer(str); - } + std::string str = mTextBox->getTextAtPos(x, y); + sendBuffer(str); } void NpcDialog::setSkin(const std::string &skin) -- cgit v1.2.3-60-g2f50