delete new window
This commit is contained in:
parent
792e383e1b
commit
7248583e65
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
|
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue