Move some last second code to the about to quit signal.

This commit is contained in:
morg 2025-01-08 16:54:21 +00:00 committed by Adam Honse
parent 3336817c9a
commit accdcf1bea

View file

@ -574,6 +574,12 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op
OpenRGBDialog2::~OpenRGBDialog2()
{
delete ui;
}
void OpenRGBDialog2::handleAboutToQuit()
{
/*-----------------------------------------------------*\
| Write window geometry to config (if enabled) |
\*-----------------------------------------------------*/
@ -602,12 +608,6 @@ OpenRGBDialog2::~OpenRGBDialog2()
}
}
delete ui;
}
void OpenRGBDialog2::handleAboutToQuit()
{
QCloseEvent* closeEvent = new QCloseEvent;
this->closeEvent(closeEvent);
delete closeEvent;