mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Check if torrent_info is initialized in torrent addition dialog destructor (safer)
This commit is contained in:
parent
0b70b857b9
commit
b7de3fcebd
1 changed files with 1 additions and 1 deletions
|
@ -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; i<PropListModel->columnCount()-1; ++i) {
|
||||
|
|
Loading…
Reference in a new issue