diff --git a/src/GUI.cpp b/src/GUI.cpp index b9e49bba1..6f476039d 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -198,6 +198,7 @@ GUI::~GUI() { delete downloadingTorrentTab; delete finishedTorrentTab; delete checkConnect; + qDebug("1"); if(systrayCreator) { delete systrayCreator; } @@ -205,19 +206,23 @@ GUI::~GUI() { delete myTrayIcon; delete myTrayIconMenu; } + qDebug("2"); delete tcpServer; delete connecStatusLblIcon; delete tabs; // HTTP Server if(httpServer) delete httpServer; + qDebug("3"); // Keyboard shortcuts delete switchSearchShortcut; delete switchSearchShortcut2; delete switchDownShortcut; delete switchUpShortcut; delete switchRSSShortcut; + qDebug("4"); delete BTSession; + qDebug("5"); } void GUI::on_actionWebsite_triggered() const { diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 4d089b624..72d2357ab 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -77,6 +77,7 @@ bittorrent::bittorrent() : timerScan(0), DHTEnabled(false), preAllocateAll(false // Main destructor bittorrent::~bittorrent() { + qDebug("BTSession deletion"); // Set Session settings session_settings ss; ss.tracker_receive_timeout = 1; diff --git a/src/torrentAddition.h b/src/torrentAddition.h index e04220479..766db1921 100644 --- a/src/torrentAddition.h +++ b/src/torrentAddition.h @@ -80,6 +80,7 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{ connect(actionHigh, SIGNAL(triggered()), this, SLOT(highSelection())); connect(actionMaximum, SIGNAL(triggered()), this, SLOT(maximumSelection())); torrentContentList->header()->resizeSection(0, 200); + torrentContentList->header()->setResizeMode(0, QHeaderView::Stretch); QString home = QDir::homePath(); if(home[home.length()-1] != QDir::separator()){ home += QDir::separator();