Browse Source

Deleting windows that are possibly still open on exit

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
9202ce8757
  1. 6
      src/GUI.cpp

6
src/GUI.cpp

@ -251,6 +251,12 @@ GUI::~GUI() { @@ -251,6 +251,12 @@ GUI::~GUI() {
delete switchRSSShortcut;
// Delete BTSession objects
delete BTSession;
// Deleting remaining top level widgets
qDebug("Deleting remaining top level widgets");
foreach (QWidget *win, QApplication::topLevelWidgets()) {
if(win && win != this)
delete win;
}
// May freeze for a few seconds after the next line
// because the Bittorrent session proxy will
// actually be deleted now and destruction

Loading…
Cancel
Save