mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Deleting windows that are possibly still open on exit
This commit is contained in:
@@ -251,6 +251,12 @@ GUI::~GUI() {
|
|||||||
delete switchRSSShortcut;
|
delete switchRSSShortcut;
|
||||||
// Delete BTSession objects
|
// Delete BTSession objects
|
||||||
delete BTSession;
|
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
|
// May freeze for a few seconds after the next line
|
||||||
// because the Bittorrent session proxy will
|
// because the Bittorrent session proxy will
|
||||||
// actually be deleted now and destruction
|
// actually be deleted now and destruction
|
||||||
|
|||||||
Reference in New Issue
Block a user