mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
really fixed zone view bug
This commit is contained in:
parent
f308e9edef
commit
40d292c4ac
3 changed files with 5 additions and 3 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "playerarea.h"
|
||||
#include "counter.h"
|
||||
#include "zoneviewzone.h"
|
||||
#include "zoneviewwidget.h"
|
||||
#include "game.h"
|
||||
#include <QGraphicsScene>
|
||||
#include <QMenu>
|
||||
|
|
@ -157,7 +158,7 @@ void Player::gameEvent(const ServerEventData &event)
|
|||
// Clean up existing zones first
|
||||
for (int i = 0; i < zones.size(); i++) {
|
||||
if (ZoneViewZone *view = zones.at(i)->getView())
|
||||
emit closeZoneView(view);
|
||||
((ZoneViewWidget *) view->parentItem())->close();
|
||||
zones.at(i)->clearContents();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue