mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-07-25 12:36:05 -04:00
Move some last second code to the about to quit signal.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user