Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > 1f19551ee69943d9f6a38378dd31b753 > files > 2

valyriatear-0.5.0-4.fc17.src.rpm

From 343db96293e26b43fc7660e09a6e8b1b24b70fef Mon Sep 17 00:00:00 2001
From: Yohann Ferreira <yohann_ferreira_at_orange_fr_>
Date: Fri, 1 Feb 2013 16:08:59 +0100
Subject: [PATCH] Reinitialize more completely the sell mode when doing a
 transaction.

Hopefully fixes issue #127.
---
 src/modes/shop/shop_sell.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/modes/shop/shop_sell.cpp b/src/modes/shop/shop_sell.cpp
index 9fa3147..17537a2 100644
--- a/src/modes/shop/shop_sell.cpp
+++ b/src/modes/shop/shop_sell.cpp
@@ -295,10 +295,7 @@ void SellInterface::MakeActive()
 
 void SellInterface::TransactionNotification()
 {
-    _PopulateLists();
-
-    _current_category = _number_categories > 0 ? _number_categories - 1 : 0;
-    _view_mode = SHOP_VIEW_MODE_LIST;
+    Reinitialize();
 }
 
 
-- 
1.8.1.4