The ceguSub Wiget does have the deleteonclose option set when it is created.
I have modified the creation code but it still has the same problems.
bool MainWindow::LoadRecentFiles()
{
if(!recentFiles.empty())
{
for (int x = 0; x < (recentFiles.size()); ++x)
{
ceguSubWidget *child = new ceguSubWidget();
if (mdiArea->addSubWindow(child))
{
if (child->load(recentFiles.at(x)))
{
child->show();
return true;
}
else
{
child->close();
return false;
}
}
}
}
return false;
}
bool MainWindow::LoadRecentFiles()
{
if(!recentFiles.empty())
{
for (int x = 0; x < (recentFiles.size()); ++x)
{
ceguSubWidget *child = new ceguSubWidget();
if (mdiArea->addSubWindow(child))
{
if (child->load(recentFiles.at(x)))
{
child->show();
return true;
}
else
{
child->close();
return false;
}
}
}
}
return false;
}
To copy to clipboard, switch view to plain text mode
Bookmarks