summaryrefslogtreecommitdiff
path: root/src/net/ea/buysellhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/buysellhandler.cpp')
-rw-r--r--src/net/ea/buysellhandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp
index 9a147347a..21769cef4 100644
--- a/src/net/ea/buysellhandler.cpp
+++ b/src/net/ea/buysellhandler.cpp
@@ -35,4 +35,10 @@ BuySellHandler::BuySellHandler()
BuySellRecv::mBuyDialog = nullptr;
}
+void BuySellHandler::cleanDialogReference(const BuyDialog *const dialog) const
+{
+ if (BuySellRecv::mBuyDialog == dialog)
+ BuySellRecv::mBuyDialog = nullptr;
+}
+
} // namespace Ea