forked from Public-Mirror/Textractor
small fixes
This commit is contained in:
parent
f62f90a068
commit
4c1cac7dbb
@ -31,7 +31,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
{ EXTENSIONS, &MainWindow::Extensions }
|
||||
})
|
||||
{
|
||||
QPushButton* button = new QPushButton(ui->processFrame);
|
||||
auto button = new QPushButton(ui->processFrame);
|
||||
connect(button, &QPushButton::clicked, this, slot);
|
||||
button->setText(text);
|
||||
ui->processLayout->addWidget(button);
|
||||
|
@ -87,7 +87,7 @@ BOOL WINAPI DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
{
|
||||
window->save();
|
||||
if (window) window->save();
|
||||
if (lpReserved == NULL) // https://blogs.msdn.microsoft.com/oldnewthing/20120105-00/?p=8683
|
||||
{
|
||||
delete window;
|
||||
|
Loading…
x
Reference in New Issue
Block a user