Skip to content

Commit

Permalink
Update mainwindow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ea4k committed Aug 13, 2024
1 parent 0b7f9a6 commit fda35c1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ MainWindow::MainWindow(const QString &tversion)
mainWidget = new QWidget(this);
//qDebug() << Q_FUNC_INFO << ": 60 " << QTime::currentTime().toString("hh:mm:ss") ;

dateTime = std::make_unique<QDateTime>();
dateTime = new QDateTime();
dateTimeTemp = new QDateTime();
// UI DX
infoLabel2 = new QLabel(tr("DX Entity"));
loggWinAct = new QAction(tr("&Log Window"), this);
Expand Down Expand Up @@ -250,7 +251,8 @@ MainWindow::~MainWindow()
delete(locator);
delete(qso);
delete(backupQSO);
dateTime.reset();
delete(dateTime);
delete(dateTimeTemp);
delete(awards);
delete(softUpdate);
delete(filemanager);
Expand Down Expand Up @@ -2217,6 +2219,7 @@ void MainWindow::slotClearButtonClicked(const QString &_func)
setModifying(false);

currentEntity = -1;
dateTimeTemp = dateTime;
modifyingQSO = -1;

QSOTabWidget->setRSTToMode(mainQSOEntryWidget->getMode(), readingTheUI);
Expand Down Expand Up @@ -4684,6 +4687,8 @@ void MainWindow::qsoToEdit (const int _qso)

mainQSOEntryWidget->setDateTime(qsoE.getDateTimeOn());

dateTimeTemp->setDate(qsoE.getDate());

mainQSOEntryWidget->setBand(qsoE.getBand());

//qDebug() << Q_FUNC_INFO << " - RST" ;
Expand Down

0 comments on commit fda35c1

Please sign in to comment.