diff options
Diffstat (limited to 'src/gui/windows/tradewindow.cpp')
-rw-r--r-- | src/gui/windows/tradewindow.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp index 7a835b686..edd685f30 100644 --- a/src/gui/windows/tradewindow.cpp +++ b/src/gui/windows/tradewindow.cpp @@ -23,6 +23,7 @@ #include "gui/windows/tradewindow.h" #include "configuration.h" +#include "game.h" #include "item.h" #include "units.h" @@ -296,6 +297,14 @@ void TradeWindow::receivedOk(const bool own) setStatus(ACCEPTING); } +void TradeWindow::completeTrade() +{ + if (config.getBoolValue("tradescreenshot")) + Game::createScreenshot(); + setVisible(Visible_false); + reset(); +} + void TradeWindow::tradeItem(const Item *const item, const int quantity, const bool check) const { |