Two bugfixes to your latest version. The first is mentioned already by wysota (but I hadn't read his message so it took me 30 minutes to figure out with gdb why I was getting core dumps on startup before realizing you were trying to run setupMenu() on Editor before initializing it). The second fixes the problem that when you close a file that has been opened, the tab disappears but not the source code. When no files are open the Editor widget shouldn't display anything. Below are my modified lines.
--devgui.cpp---line 51--DevGUI() constructor--
Editor->setWindowState(Qt::WindowMaximized);
Editor->setContextMenuPolicy(Qt::CustomContextMenu);
setupMenu();
setupFileActions();
setupEditActions();
//setupTextActions();
setupCompiler();
setupExplorer();
Editor = new QTabWidget(this);
Editor->setWindowState(Qt::WindowMaximized);
Editor->setContextMenuPolicy(Qt::CustomContextMenu);
setupMenu();
setupFileActions();
setupEditActions();
//setupTextActions();
setupCompiler();
setupExplorer();
To copy to clipboard, switch view to plain text mode
--devgui.cpp---line 602--DevGUI::close()--
//Your old function which removes the tab, but not the actual page Editor->removeTab(pos);
delete Editor->widget(pos);
//Your old function which removes the tab, but not the actual page Editor->removeTab(pos);
delete Editor->widget(pos);
To copy to clipboard, switch view to plain text mode
I'll let you know if I see anything else.
Bookmarks