Skip to content

Commit accdcf1

Browse files
moooorgCalcProgrammer1
authored andcommitted
Move some last second code to the about to quit signal.
1 parent 3336817 commit accdcf1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

qt/OpenRGBDialog2/OpenRGBDialog2.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,12 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op
574574

575575
OpenRGBDialog2::~OpenRGBDialog2()
576576
{
577+
delete ui;
578+
}
579+
580+
581+
void OpenRGBDialog2::handleAboutToQuit()
582+
{
577583
/*-----------------------------------------------------*\
578584
| Write window geometry to config (if enabled) |
579585
\*-----------------------------------------------------*/
@@ -602,12 +608,6 @@ OpenRGBDialog2::~OpenRGBDialog2()
602608
}
603609
}
604610

605-
delete ui;
606-
}
607-
608-
609-
void OpenRGBDialog2::handleAboutToQuit()
610-
{
611611
QCloseEvent* closeEvent = new QCloseEvent;
612612
this->closeEvent(closeEvent);
613613
delete closeEvent;

0 commit comments

Comments
 (0)