From b7de3fcebd1da0f1a083edc9ec8d3d6407437108 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 23 Jun 2010 17:58:32 +0000 Subject: [PATCH] Check if torrent_info is initialized in torrent addition dialog destructor (safer) --- src/torrentadditiondlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrentadditiondlg.cpp b/src/torrentadditiondlg.cpp index 76213296c..a75b37ccd 100644 --- a/src/torrentadditiondlg.cpp +++ b/src/torrentadditiondlg.cpp @@ -92,7 +92,7 @@ void torrentAdditionDialog::readSettings() { void torrentAdditionDialog::saveSettings() { QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); - if(!is_magnet && t->num_files() > 1) { + if(!is_magnet && t.get() && t->is_valid() && t->num_files() > 1) { QStringList contentColsWidths; // -1 because we hid PROGRESS column for(int i=0; icolumnCount()-1; ++i) {