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()
|
||||
{
|
||||
delete ui;
|
||||
delete newmapprompt;
|
||||
}
|
||||
|
||||
void MainWindow::initExtraShortcuts() {
|
||||
|
@ -705,6 +706,7 @@ void MainWindow::openNewMapPopupWindow(int groupNum) {
|
|||
if (!this->newmapprompt->isVisible()) {
|
||||
this->newmapprompt->show();
|
||||
} else {
|
||||
this->newmapprompt->raise();
|
||||
this->newmapprompt->activateWindow();
|
||||
}
|
||||
this->newmapprompt->init(groupNum);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "connectionpixmapitem.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
|
||||
void ConnectionPixmapItem::render(qreal opacity) {
|
||||
QPixmap newPixmap = this->basePixmap.copy(0, 0, this->basePixmap.width(), this->basePixmap.height());
|
||||
|
|
Loading…
Reference in a new issue