delete new window

This commit is contained in:
garak 2018-11-14 19:33:01 -05:00
parent 792e383e1b
commit 7248583e65
2 changed files with 3 additions and 1 deletions

View file

@ -51,6 +51,7 @@ MainWindow::MainWindow(QWidget *parent) :
MainWindow::~MainWindow() MainWindow::~MainWindow()
{ {
delete ui; delete ui;
delete newmapprompt;
} }
void MainWindow::initExtraShortcuts() { void MainWindow::initExtraShortcuts() {
@ -705,6 +706,7 @@ void MainWindow::openNewMapPopupWindow(int groupNum) {
if (!this->newmapprompt->isVisible()) { if (!this->newmapprompt->isVisible()) {
this->newmapprompt->show(); this->newmapprompt->show();
} else { } else {
this->newmapprompt->raise();
this->newmapprompt->activateWindow(); this->newmapprompt->activateWindow();
} }
this->newmapprompt->init(groupNum); this->newmapprompt->init(groupNum);

View file

@ -1,6 +1,6 @@
#include "connectionpixmapitem.h" #include "connectionpixmapitem.h"
#include <cmath> #include <math.h>
void ConnectionPixmapItem::render(qreal opacity) { void ConnectionPixmapItem::render(qreal opacity) {
QPixmap newPixmap = this->basePixmap.copy(0, 0, this->basePixmap.width(), this->basePixmap.height()); QPixmap newPixmap = this->basePixmap.copy(0, 0, this->basePixmap.width(), this->basePixmap.height());