diff --git a/src/torrentadditiondlg.cpp b/src/torrentadditiondlg.cpp index ab657abc0..d5a678bc8 100644 --- a/src/torrentadditiondlg.cpp +++ b/src/torrentadditiondlg.cpp @@ -138,7 +138,8 @@ void torrentAdditionDialog::limitDialogWidth() { QRect desk(QApplication::desktop()->availableGeometry(scrn)); int max_width = desk.width(); - setMaximumWidth(max_width); + if(max_width > 0) + setMaximumWidth(max_width); } void torrentAdditionDialog::hideTorrentContent() {